-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
Hello!
This is a feature request to handle an error.
I ran into an issue when updating my project from version 1.x.x to 2.x.x. Seems like the property server.ssl.keyAlias was turned case sensitive and the application couldn't load the key from the keystore on startup. The application is still able to startup with no error or warn log about it but clients cannot complete a handshake.
Example:
Keystore keystore.jks contains a private key entry with an alias myprivatekey
Set the properties
server:
ssl:
enabled: true
key-store: keystore.jks
key-store-password: changeit
keyAlias: MyPrivateKey
The symptoms:
Chrome gives the following error: ERR_SSL_VERSION_OR_CIPHER_MISMATCH
openssl printout:
CONNECTED(00000003)
140162214049696:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:744:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 247 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
The resolution:
The application shouldn't be able to start with SSL turned on if the alias specified doesn't match anything in the keystore provided.
Used Spring Boot version: 2.1.2.RELEASE