Launcher error!

The worst monsters in the Hearthlands warp the fabric of space and time...

Launcher error!

Postby Zantoma » Sat Oct 14, 2023 11:52 am

Cant play game on my new notebook, have this error before title screen and else, just cant run game at all:

Code: Select all
java.lang.RuntimeException: could not load extension: https://game.havenandhearth.com/java/launcher-ext.jar
   at haven.launcher.Config.command(Config.java:337)
   at haven.launcher.Config.read(Config.java:373)
   at haven.launcher.Driver.main(Driver.java:153)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
   at sun.security.ssl.Alert.createSSLException(Unknown Source)
   at sun.security.ssl.TransportContext.fatal(Unknown Source)
   at sun.security.ssl.TransportContext.fatal(Unknown Source)
   at sun.security.ssl.TransportContext.fatal(Unknown Source)
   at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)
   at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)
   at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)
   at sun.security.ssl.SSLHandshake.consume(Unknown Source)
   at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
   at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
   at sun.security.ssl.TransportContext.dispatch(Unknown Source)
   at sun.security.ssl.SSLTransport.decode(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
   at haven.launcher.Cache.update0(Cache.java:275)
   at haven.launcher.Cache.update(Cache.java:360)
   at haven.launcher.Resource.update(Resource.java:75)
   at haven.launcher.Extension.load(Extension.java:47)
   at haven.launcher.Config.command(Config.java:334)
   ... 2 more
   Suppressed: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
      ... 26 more
   Caused by: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
      at sun.security.util.HostnameChecker.matchDNS(Unknown Source)
      at sun.security.util.HostnameChecker.match(Unknown Source)
      at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
      at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
      at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(Unknown Source)
      at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
      ... 22 more
   Suppressed: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
      ... 26 more
   Caused by: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
      at sun.security.util.HostnameChecker.matchDNS(Unknown Source)
      at sun.security.util.HostnameChecker.match(Unknown Source)
      at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
      at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
      at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(Unknown Source)
      at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
      ... 22 more
Caused by: java.security.cert.CertificateException: No name matching game.havenandhearth.com found
   at sun.security.util.HostnameChecker.matchDNS(Unknown Source)
   at sun.security.util.HostnameChecker.match(Unknown Source)
   at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
   at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
   at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(Unknown Source)
   at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
   ... 22 more
Last edited by loftar on Sun Oct 15, 2023 12:49 am, edited 1 time in total.
Reason: Added code tags
Zantoma
 
Posts: 14
Joined: Wed May 26, 2021 12:44 am

Re: Launcher error!

Postby trinh » Sat Oct 14, 2023 10:59 pm

they messed something with ssl configuration so game.havenandhearth.com is using selfsigned certificate:

Code: Select all
silverpine ~ # curl -vvv https://game.havenandhearth.com/java/launcher-ext.jar
*   Trying 159.69.75.231:443...
* Connected to game.havenandhearth.com (159.69.75.231) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.



Code: Select all
silverpine ~ # curl -vvv https://www.havenandhearth.com/java/launcher-ext.jar
*   Trying 159.69.75.231:443...
* Connected to www.havenandhearth.com (159.69.75.231) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=www.havenandhearth.com
*  start date: Sep 16 03:25:52 2023 GMT
*  expire date: Dec 15 03:25:51 2023 GMT
*  subjectAltName: host "www.havenandhearth.com" matched cert's "www.havenandhearth.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* using HTTP/1.x
> GET /java/launcher-ext.jar HTTP/1.1
> Host: www.havenandhearth.com
> User-Agent: curl/8.3.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/java-archive
< Content-Length: 112936
< Last-Modified: Tue, 23 May 2023 14:31:53 GMT
< Date: Sat, 14 Oct 2023 21:55:46 GMT
< Server: ashd/0.13
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
* Failure writing output to destination
* Closing connection
* TLSv1.2 (OUT), TLS alert, close notify (256):


User avatar
trinh
 
Posts: 197
Joined: Sun Feb 26, 2012 11:34 am
Location: Wroclaw [Poland]

Re: Launcher error!

Postby loftar » Sat Oct 14, 2023 11:07 pm

trinh wrote:they messed something with ssl configuration so game.havenandhearth.com is using selfsigned certificate:

That is entirely intentional, though, and it is the certificate that the launcher should be looking for. The error doesn't indicate that it cannot validate the certificate trust chain, but should indicate that the names in the certificate doesn't match the domain name in the URL, but that shouldn't be the case.
Code: Select all
$ openssl s_client -connect game.havenandhearth.com:443 </dev/null 2>/dev/null | openssl x509 -noout -text
...
            X509v3 Subject Alternative Name:
                DNS:www.havenandhearth.com, DNS:havenandhearth.com, DNS:game.havenandhearth.com
...

I have no idea why OP's Java can't see that, however. I'm not aware of any local configuration that would cause it to validate the domain name differently.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Launcher error!

Postby Zantoma » Sat Oct 14, 2023 11:26 pm

Guys, well, at least if there is fix with those programmers codes and certificates...can you tell dummy me where i should throw all of that, since all of that unknown for me, like previously i pressed button to play the game and all was great. I will buy new hat, im promise! Preferably step by step guide, thx!
Zantoma
 
Posts: 14
Joined: Wed May 26, 2021 12:44 am

Re: Launcher error!

Postby loftar » Sat Oct 14, 2023 11:32 pm

Unfortunately, my conclusion is that I don't know why it happens. The way I understand the error you're seeing, it should either happen to everyone or to noone. I can't explain why it just happens to you.

Not sure it matters in the end, but what version of Java are you using?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Launcher error!

Postby Zantoma » Sat Oct 14, 2023 11:43 pm

loftar wrote:Unfortunately, my conclusion is that I don't know why it happens. The way I understand the error you're seeing, it should either happen to everyone or to noone. I can't explain why it just happens to you.

Not sure it matters in the end, but what version of Java are you using?


Using the latest one. Laptop is Asus tuf A15(2023) with rtx 4060
Also i have that error in browser:
NET::ERR_CERT_AUTHORITY_INVALID

When i follow this link:

https://game.havenandhearth.com/java/launcher-ext.jar

Maybe that additional info could push another mind
Zantoma
 
Posts: 14
Joined: Wed May 26, 2021 12:44 am

Re: Launcher error!

Postby loftar » Sat Oct 14, 2023 11:45 pm

Zantoma wrote:Using the latest one.

There are several versions that could qualify as "the latest", so please be precise.

Zantoma wrote:Also i have that error in browser:
NET::ERR_CERT_AUTHORITY_INVALID

When i follow this link:

https://game.havenandhearth.com/java/launcher-ext.jar

Maybe that additional info could push another mind

That's completely normal. That domain does use a special certificate, but that's the certificate that the launcher should be looking for.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Launcher error!

Postby Zantoma » Sat Oct 14, 2023 11:57 pm

loftar wrote:
Zantoma wrote:Using the latest one.

There are several versions that could qualify as "the latest", so please be precise.

Zantoma wrote:Also i have that error in browser:
NET::ERR_CERT_AUTHORITY_INVALID

When i follow this link:

https://game.havenandhearth.com/java/launcher-ext.jar

Maybe that additional info could push another mind

That's completely normal. That domain does use a special certificate, but that's the certificate that the launcher should be looking for.


Sorry, using that one: 64-bit Java for Windows
Version 8 Update 381 Build 1.8.0_381-b09
Zantoma
 
Posts: 14
Joined: Wed May 26, 2021 12:44 am

Re: Launcher error!

Postby loftar » Sun Oct 15, 2023 12:12 am

Yeah, that's the latest version of Java 8, but there are later version of Java. It shouldn't matter, but since the error shouldn't happen to begin with, who knows, maybe it might happen to help. You could try to install the latest Java 21, which is available from, among other places, https://adoptium.net.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Launcher error!

Postby Zantoma » Sun Oct 15, 2023 12:40 am

loftar wrote:Yeah, that's the latest version of Java 8, but there are later version of Java. It shouldn't matter, but since the error shouldn't happen to begin with, who knows, maybe it might happen to help. You could try to install the latest Java 21, which is available from, among other places, https://adoptium.net.


Pretty much same...im in despair : (
Zantoma
 
Posts: 14
Joined: Wed May 26, 2021 12:44 am


Return to Bugs

Who is online

Users browsing this forum: Claude [Bot] and 32 guests