web services - IBM Liberty SSL HANDSHAKE FAILURE -
i using liberty 16.0.0.4
i trying call xxxx soap services, got following errors
[error ] cwpki0022e: ssl handshake failure: signer subjectdn cn=xxxx, sent target host. signer might need added local trust store serverhome/resources/security/key.jks, located in ssl configuration alias defaultsslconfig. extended error message ssl handshake exception is: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target
i used next command generate certificate
openssl s_client -connect xxxxurl:443 | sed -ne '/-begin certificate-/,/-end certificate-/p' > xxx.cert then injecting liberty jks default file next command
keytool -import -trustcacerts -alias xxxsigner -file xxx.cert -keystore *pathtohomeserver/resources/security/key.jks* -storepass liberty -storetype jks also server.xml tags related that
<featuremanager> <feature>webprofile-7.0</feature> <feature>jaxb-2.2</feature> <feature>concurrent-1.0</feature> <feature>javamail-1.5</feature> <feature>localconnector-1.0</feature> <feature>jaxws-2.2</feature> <feature>apidiscovery-1.0</feature> <feature>ssl-1.0</feature> </featuremanager> <keystore id="defaultkeystore" location="${server.config.dir}/resources/security/key.jks" password="{xor}ezy9oi0rjg==" type="jks" /> <keystore id="defaulttruststore" location="${server.config.dir}/resources/security/key.jks" password="{xor}ezy9oi0rjg==" type="jks" /> <ssldefault sslref="defaultsslconfig" /> <ssl id="defaultsslconfig" keystoreref="defaultkeystore" truststoreref="defaulttruststore" sslprotocol="tlsv1.2"/> <httpendpoint id="defaulthttpendpoint" httpport="9080" httpsport="9443"> <ssloptions sslref="defaultsslconfig"></ssloptions> </httpendpoint> so problem side
not sure why approach not working, way go use browser retrieve certificate , keytool add it, described here (see 8/5/2015 comment @ bottom of article): developer.ibm.com/wasdev/docs/single-sign-google-liberty
Comments
Post a Comment