HTTPS and TLS v1.3 #14539
-
|
Hi, I am using the jetty-12.1.6 libraries with graalvm-ce-17.
I started the class implementation from the example HTTP server on the jetty documentation site. Then I used curl to test https.
The curl call log is : I asked in the curl-users mailing list, they say that jetty is probably returning HTTP. Thanks, (https://github.com/user-attachments/files/25415280/AuthorizationServer.java) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I stripped down your I don't think this is a Jetty issue, it is more likely a KeyStore issue or something else. I suggest that you strip down your example to the bare minimum (just a Jetty server with connectors), and try with normal JVM and normal KeyStore. Note that |
Beta Was this translation helpful? Give feedback.
-
|
Hi,
Thanks for your reply.
It was indeed a problem wit the both the keystore and the server configuration made in that class I sent.
The configuration file I was using didn’t say where was the keystone, and I couldn’t figure that out
from the communication errors. I regenerated the keystore and configured the server and it’s working now.
Thank you for your help,
Regards
… On 21 Feb 2026, at 10:26, Simone Bordet ***@***.***> wrote:
I stripped down your AuthorizationServer.java to just set up the server and the connectors, and it works for me.
I don't think this is a Jetty issue, it is more likely a KeyStore issue or something else.
I suggest that you strip down your example to the bare minimum (just a Jetty server with connectors), and try with normal JVM and normal KeyStore.
Then change KeyStore with the one you're using. And so on.
Note that keytool -genkeypair is normally used to create a KeyStore, not -gencert. Make sure you create the KeyStore correctly.
curl -kv https://localhost:9433/
* Host localhost:9433 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:9433...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
* subject: C=US; ST=NE; L=Omaha; O=Webtide; OU=Jetty; CN=localhost
* start date: Oct 8 20:15:39 2020 GMT
* expire date: Sep 14 20:15:39 2120 GMT
* issuer: C=US; ST=NE; L=Omaha; O=Webtide; OU=Jetty; CN=localhost
* SSL certificate verify result: self-signed certificate (18), continuing anyway.
* Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to localhost (::1) port 9433
* using HTTP/1.x
> GET / HTTP/1.1
> Host: localhost:9433
> User-Agent: curl/8.14.1
> Accept: */*
>
* Request completely sent off
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/1.1 404 Not Found
< Server: Jetty(12.1.6)
< Date: Sat, 21 Feb 2026 10:20:39 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 737
<
<!DOCTYPE html>
<html lang="en">
<head>
<title>Error 404 - Not Found</title>
<meta charset="utf-8">
<style>body { font-family: sans-serif; } table, td { border: 1px solid #333; } td, th { padding: 5px; } thead, tfoot { background-color: #333; color: #fff; } </style>
</head>
<body>
<h2>Error 404 - Not Found.</h2>
<p>No context on this server matched or handled this request.</p>
<p>Contexts known to this server are:</p>
<table class="contexts"><thead><tr><th>Context Path</th><th>Display Name</th><th>Status</th><th>LifeCycle</th></tr></thead><tbody>
</tbody></table><hr/>
<a href="https://jetty.org"><img alt="icon" src="/favicon.ico"/></a> <a href="https://jetty.org">Powered by Eclipse Jetty:// Server</a><hr/>
</body>
</html>
* Connection #0 to host localhost left intact
—
Reply to this email directly, view it on GitHub <#14539 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABCEAHMQPQYXI7H4EA4HNRL4NAXENAVCNFSM6AAAAACVVXO3L6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOBXHE4DINI>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
I stripped down your
AuthorizationServer.javato just set up the server and the connectors, and it works for me.I don't think this is a Jetty issue, it is more likely a KeyStore issue or something else.
I suggest that you strip down your example to the bare minimum (just a Jetty server with connectors), and try with normal JVM and normal KeyStore.
Then change KeyStore with the one you're using. And so on.
Note that
keytool -genkeypairis normally used to create a KeyStore, not-gencert. Make sure you create the KeyStore correctly.