I'm trying to invoke a SOAP service published on a secured server (Apache/Tomcat with SSL and CA configured)
the service expect a .P12 (PKCS#12) certificate to handle authorization.
My test using SOAPUI works well ( service invoked and returned the correct result )
I guess I'v to deal with KeyTool to load the certificate within my keystore but I'm not able to figure it ou correctly.
in addition to that, SOAPUI is running on top of a JVM, and no need to load any certificate within JRE keyStore (as it just need to point on the P12 certificate), so I think that there's a way to "Load" the certificate on demande at invokation time ?
after some investigations, It seems that there's some CXF configurations to do ( documentation )
Code : github repository
VM arguments :
-Djavax.net.ssl.keyStoreType=pkcs12
-Djavax.net.ssl.keyStore=c:/job/CDBXXX-XXXXX.p12
-Djavax.net.ssl.keyStorePassword=******
Logs (more here ):
main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
main, WRITE: TLSv1 Alert, length = 2
main, called closeSocket()
main, handling exception: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target
main, called close()
main, called closeInternal(true)
Thank's
javax.net.ssl.SSLHandshakeException means that you have one of these problems :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.