Try adding "-Djavax.net.debug=all" to your client command line. The output should point you to what exactly is the matter. Most likely something isn't right with the certs and/or keystore.
this post was submitted on 31 Dec 2023
6 points (87.5% liked)
The Java Programming Language
214 readers
6 users here now
Discussion of Java and java-related technologies. This includes things like:
- J2EE/JakartaEE
- Spring
- Micronaut
- Helidon
- Quarkus
For assistance learning Java, please go to Learn Java
founded 1 year ago
MODERATORS
Are you using the server and client from the tutorial?
Yes.
I copied the commands and ran the server and client from the tutorial and it worked. I'm using java 17, what version are you running?
I'm running on 21, I'll install 17 and try again
Update: it works fine on 17, not sure why it fails on 21
Is the client presenting a client certificate? handshake_failure
with mTLS generally means the client isn't presenting a certificate when the server requires it
Yes I guess, downgrading my JDK really did make it work, probably something in the docs has the answer to why something has stopped working