Reputation: 221
All I get is javax.net.ssl.SSLHandshakeException: no cipher suites in common
.
This is how to reproduce the behavior:
keytool -genkeypair -keystore demo/src/main/resources/keystore.jks
[Unknown]
is the default, enter Yes
when asked if CN=Unknown, OU=Unknown, ...
is correct.add the following to application.properties
server.ssl.key-store=classpath:keystore.jks
server.ssl.key-store-password=<my-secure-pwd>
build and run the application
curl https://localhost:8080
This is my first time adding SSL to a Spring Boot application and I think that something must be wrong - but I've no idea what. Maybe anyone of you could provide some help? Thanks!
Upvotes: 1
Views: 3225
Reputation: 221
Ok, turns out that you need to set the key algorithm to RSA in order to make this work.
keytool -genkeypair -keyalg RSA -keystore src/main/resources/keystore.jks
Upvotes: 3