I have a spring boot application, Which run as Windows Services on server machine. I upgraded java version from 1.8 to 17 also spring boot version from 2.7.0 to 3.4.4. After that i resolved the dependency that mainly include javax to jakarta import(only one). In pom.xml there are dependency which i make it compatible to java 17 version:
<dependency>
<groupId>org. apache. httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>org. apache. httpcomponents</groupId>
<artifactId>httpmime</artifactId>
</dependency>
to
<dependency>
<groupId>org. apache. httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org. apache. httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>.
My application.properties has this piece of code along with other code:
server.port=8443
server.ssl.enabled=true
server.ssl.key-store-type=jks
server.ssl.ciphers=TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
server.ssl.enabled-protocols=TLSv1.3, TLSv1.2
server.tomcat.relaxed-query-chars=| , { ,} , [, ]
and application-env.properties having below piece of code along with other code:
server.ssl.key-store=classpath:keystore/cert_name.jks
server.ssl.key-store-password=${environment_variable_name}
server.ssl.key-alias=cert_name
server.ssl.trust-store=classpath: keystore/cert_name.jks -- Added this line for testing
server.ssl.trust-store-password=same_password_as_in_environment_variable -- Added this line for testing
I am getting below log when i start my service after this upgrade:
2025-04-23 10:37:48 [1] INFO certificate - Connector [https-jsse-nio-8443], TLS virtual host [default_], certificate type [UNDEFINED] configured from keystore [C:\WINDOWS\system32\config\systemprofile\.keystore] using alias [alias_name] with trust store [null]
Tried approaches:
- I converted the jks certificate to PKCS12 certificate. but still getting same message in logs.
- Tried to downgrade few versions of dependency for httpclient and httpmime but still getting same message in logs. (4.4 and lower versions are not compatible as solution is building).
- I crossed verified the certificate expiry date, and running on other servers as well but same message on those server as well.
Any suggestion please what i am doing wrong and how to resolve this issue?