How to configure soapui with client certificate authentication

Source: Internet
Author: User
Tags soapui soap ui pfx file

How to configure soapui with client certificate authentication

(A document from Gerard van der maaden)

Soapui is one of the best free tools around to test web services. some time ago I was trying to send a SOAP message towards a SSL Web service that was set up for client certificate authentication. I pretty soon got stuck at"Javax.net. SSL. sslexception: hellorequest followed by an unexpected handshake message"Error, but after reading several posts on the internet I solved that issue. it's not really that complicated after all, but since I cocould not find a decent place on the Internet that explains this scenario in a proper way, here's a list of steps that you need to do to make it work.

Note: This following steps are based on a Windows Environment

 

Step one:

Export your certificate (the one that you want to use as the client certificate) using the Export wizardWith the Private KeyAndAll certificates in the certification path:

Give it a password (anything you want ):

And export it as a pfx file to a location somewhere on disk:

 

Step two:

Install the newest version of soap UI (currently it is 3.6.1)

Open the file c: \ Program Files \ eviware \ soapUI-3.6.1 \ bin \ soapUI-3.6.1.vmoptions and add this line at the bottom:

-Dsun. Security. SSL. allowunsaferenegotiation = true

This is needed because of a Java security feature in their newest frameworks (for further reading about this issue, read this:Http://www.soapui.org/forum/viewtopic.php? T = 4089And this:Http://java.sun.com/javase/javaseforbusiness/docs/TLSReadme.html).

 

Open soapui and go to preferences> SSL settings and configure your certificate in the keystore (use the same password as in step ONE ):

That shoshould be it. just create a new project and import the WSDL from the client authenticated SSL WebService:

And now you shoshould be able to send soap messages with client certificate authentication.

The above steps worked for me, but please drop a note if it does not work for you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.