Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Quick Note: SSL with SOAP and SOAPUI

DZone's Guide to

Quick Note: SSL with SOAP and SOAPUI

· Integration Zone ·
Free Resource

SnapLogic is the leading self-service enterprise-grade integration platform. Download the 2018 GartnerMagic Quadrant for Enterprise iPaaS or play around on the platform, risk free, for 30 days.

For doing SSL with SOAP, there’s a few things you need to setup.

C:\Program Files (x86)\SmartBear\soapUI-Pro-4.5.1\jre\lib\security

Also did it at the main jre at C:\Program Files (x86)\Java\jre7\lib\security

keytool -genkey -alias svs -keyalg RSA -keystore keystore.jks -keysize 2048

git config --global core.autocrlf true

javax.net.ssl.trustStore=<>
javax.net.ssl.trustStorePassword=<>
If these properties are not set, the default ones will be picked up from your the default location.[$JAVA_HOME/lib/security/jssecacerts, $JAVA_HOME/lib/security/cacerts]

To view the contents of keystore file, use:

keytool -list -v -keystore file.keystore -storepass changeit
To debug the ssl handshake process and view the certificates, set the VM parameter -Djavax.net.debug=all

keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass changeit -validity 360 -keysize 2048

-Djava.net.preferIPv4Stack=true

added to soapui.bat
C:\Program Files (x86)\SmartBear\SoapUI-4.6.3\bin

-Djavax.net.debug=ssl,trustmanager

http://www.sslshopper.com/article-how-to-create-a-self-signed-certificate-using-java-keytool.html

openssl s_client -showcerts -host webservices-cert.storedvalue.com -port 443

keytool -keystore clientkeystore -genkey -alias client

wsdl2java.bat -uri my.wsdl -o svsproj -p com.agilemobiledeveloper.service -d xmlbeans -t -ss -ssi -sd -g -ns2p

System.setProperty("javax.net.ssl.keyStore", keystore.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
System.setProperty("javax.net.ssl.trustStore", "clientkeystore");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");

setx -m JAVA_HOME "C:\Program Files\Java\jdk1.7.0_51″

setx -m javax.net.ssl.keyStore "keystore.jks");
setx -m javax.net.ssl.keyStorePassword "changeit");
setx -m javax.net.ssl.trustStore "keystore.jks");
setx -m javax.net.ssl.trustStorePassword "passwordislong");




 

With SnapLogic’s integration platform you can save millions of dollars, increase integrator productivity by 5X, and reduce integration time to value by 90%. Sign up for our risk-free 30-day trial!

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}