Abirami,
On 1/9/25 6:57 AM, S Abirami wrote:
After migrating from Tomcat 9 to Tomcat 10, there is an error to introduce
SSLHostConfig.
Introduced SSLHostConfig with Keystorefile and KeystorePassword as mentioned
below is not working and throwing error with file is tampered.
SSLHostConfig sslHostConfig = new SSLHostConfig();
SSLHostConfigCertificate sslHostConfigCer = new SSLHostConfigCertificate(
sslHostConfig, SSLHostConfigCertificate.Type.UNDEFINED );
sslHostConfig.setInsecureRenegotiation( false );
sslHostConfigCer.setCertificateKeystoreFile( "/var/tmp/cert/server.jks" );
sslHostConfigCer.setCertificateKeyPassword( "Temp@123456" );
sslHostConfig.addCertificate( sslHostConfigCer );
this.addSslHostConfig( sslHostConfig );
Are you missing a call to sslHostConfig.setCertificateKeystoreType("JKS")?
Can you post the stack trace you are getting and the full error message?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org