Usage constraint TLSServer check failed: SHA1 used with certificate with TLS/SSL handshake in Java

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.