Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.0
-
None
Description
I have made some changes here
https://github.com/Ravisankar-Challa/meecrowave/commit/bfc0e41dc44577a1c420ec63589939631e60bedd
This also fixes below issues.
1) Configuring keystore and trust store
ssl = true
ssl-protocol = TLS
keystore-file = ../../target/classes/meecrowave.jks
key-alias = meecrowave
keystore-password = meecrowave
http2 = true
connector.sslhostconfig.truststoreFile = ../../target/classes/trust.jks
connector.sslhostconfig.truststorePassword = meecrowave
With the above configuration we get the below error.
java.lang.IllegalArgumentException: Multiple SSLHostConfig elements were provided for the host name [_default_]. Host names must be unique.
2) Configuring keystore using configuration properties
ssl = true
ssl-protocol = TLS
http2 = true
connector.sslhostconfig.certificateKeystoreFile = ../../target/classes/meecrowave.jks
connector.sslhostconfig.certificateKeystoreType = JKS
connector.sslhostconfig.certificateKeystorePassword = meecrowave
connector.sslhostconfig.certificateKeyAlias = meecrowave
java.lang.IllegalArgumentException: Multiple SSLHostConfig elements were provided for the host name [_default_]. Host names must be unique.
if I add some other host name
connector.sslhostconfig.hostName = test-host
I am getting the below error
Caused by: java.lang.IllegalArgumentException: java.io.IOException: Failed to load keystore type [JKS] with path [C:\Users\ravi/.keystore] due to [Illegal character i
n opaque part at index 2: C:\Users\ravi/.keystore] // Default tomcat key store path