I have received the certification as .pem and the private key as .key and the host as wildcard
*.domain:* and used them in postman and worked as expected.
I need to do the same in java , I have tried all the possible scenario I found in the internet
like :
converting the file using openssl to different formats (cer ,cert,p12,jks)
all the scenarios of using keystore and truststore or custom one
but, no luck at all
Always get:
Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path >building failed: sun.security.provider.certpath.SunCertPathBuilderException: >unable to find valid certification path to requested target

create a keystore with .pem and .key file