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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content