DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

SBOMs are essential to circumventing software supply chain attacks, and they provide visibility into various software components.

Related

  • Consuming SOAP Service With Apache CXF and Spring
  • SOAP Transformation With Apache Camel Java DSL
  • Web Service Testing Using Neoload
  • MuleSoft Integrate With ServiceNow

Trending

  • Effective Exception Handling in Java and Spring Boot Applications
  • Run Scalable Python Workloads With Modal
  • Beyond Java Streams: Exploring Alternative Functional Programming Approaches in Java
  • Misunderstanding Agile: Bridging The Gap With A Kaizen Mindset
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Quick Note: SSL with SOAP and SOAPUI

Quick Note: SSL with SOAP and SOAPUI

By 
Tim Spann user avatar
Tim Spann
DZone Core CORE ·
May. 23, 14 · Interview
Likes (1)
Comment
Save
Tweet
Share
19.5K Views

Join the DZone community and get the full member experience.

Join For Free

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://docs.oracle.com/cd/E19509-01/820-3503/ggfgo/index.html
  • http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
  • http://ianso.blogspot.com/2009/12/building-ws-security-enabled-soap.html
  • http://javarevisited.blogspot.com/2012/09/difference-between-truststore-vs-keyStore-Java-SSL.html
  • http://javarevisited.blogspot.com/2012/03/add-list-certficates-java-keystore.html
  • http://www.ibm.com/developerworks/java/library/j-jws17/index.html
  • http://www.coderanch.com/t/223027/Web-Services/java/SOAP-HTTPS-SSL
  • http://ruchirawageesha.blogspot.in/2010/07/how-to-create-clientserver-keystores.html
  • http://stackoverflow.com/questions/11001102/how-to-programmatically-set-the-sslcontext-of-a-jax-ws-client
  • http://busylog.net/ssl-java-keytool-soap-and-eclipse/

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");




 

SOAP Web Protocols

Published at DZone with permission of Tim Spann, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Consuming SOAP Service With Apache CXF and Spring
  • SOAP Transformation With Apache Camel Java DSL
  • Web Service Testing Using Neoload
  • MuleSoft Integrate With ServiceNow

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: