Ask a Question

Two-way SSL for REST

SOLVED
grooves
Occasional Contributor

Two-way SSL for REST

Hi,

 

Tried unsuccessfully to get two-way SSL to work with the latest version of SoapUI (5.3.0).

Followed this guide:

http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certifica...

 

I have a SSL key pair stored in a pfx with a password.

The keystore is referred to in SoapUI settings and the password added there. "Requires client authentication" checkbox selected.

 

I'm verifying using an openssl server that the client doesn't provide a certificate:

4294956672:error:140890C7:SSL routines:ssl3_get_client_certificate:peer did not return a certificate:s3_srvr.c:3296:

SoapUI says "java.net.SocketException: Software caused connection abort: recv failed"

Testing with a browser against the same server prompts me to provide the certificate and the same pfx works in the browser.

 

Am I missing something or is something broken in this version? I'm pretty sure I did exactly this in SoapUI a few years back.

2 REPLIES 2
grooves
Occasional Contributor

Btw, SoapUI logs says upon startup:

2017-04-19 14:08:05,717 ERROR [errorlog] java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.commons.ssl.KeyStoreBuilder.build(KeyStoreBuilder.java:176)
grooves
Occasional Contributor

Ok, seems describing your issue helps with the troubleshooting. I found this description of the issue:

http://stackoverflow.com/questions/32912965/undefined-commonname-in-certificate

 

Basically my certificate lacks a common name (CN), thus the NPE.

cancel
Showing results for 
Search instead for 
Did you mean: