Usage constraint TLSServer check failed: SHA1 used with certificate with TLS/SSL handshake in Java
Issue
- Getting the following error when calling a service secured with TLS/SSL:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Usage constraint TLSServer check failed: SHA1 used with certificate: CN=Example SHA1 Root CA, O=Example, C=US. Usage was tls server
Environment
- Java application running in Oracle Java Runtime, OpenJDK or other JVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.