Forum Discussion

monolith's avatar
16 years ago

Configure for SSL client authentication

I am attempting to setup SoapUI for connection to an endpoint over SSL that requires client authentication.

There are SSL properties which can be set via preferences->ssl settings. I have set this to point to my JKS keystore with the correct password. I can see a message in the logs indicating no error.

In the 'Security Configurations'-> 'Keystores/Certificates' on the project properties, I have added the keystore. The status is OK. This allows me to select a keystore on Request Properties -> SSL Keystore property which I set to my keystore.

After doing all of this, when I execute the request, I get a 403 error "Client certificate required" and there is only 1 certificate in the response (being from the server). No certificate from my keystore is presented.

The certificates come from an application running on Websphere which can successfully communicate with the endpoint in question.

Any help in resolving this issue would be much appreciated.

4 Replies

  • benjacar's avatar
    benjacar
    New Contributor
    Hi,
    I am also interested in this one.

    I have done the same thing, configuring Keystores/Certificates successfully in the project properties - status OK
    I have then set the SSL keystore in the request properties

    I am however getting a 401 error - 10.4.2 401 Unauthorized
    How can we see in soapUI whether the certificate has been sent or not?

    Also, what are the SSL Settings in the soapUI Preferences for? If you need to set the keystore at project level.

    Thanks
    Arnaud
  • benjacar's avatar
    benjacar
    New Contributor
    Hi again,

    Just realised through the doc http://www.soapui.org/userguide/projects/wss.html#Keystores that this configuration is not for Transport Level Security (TLS) but only for Web Services Security 

    So we are back to square one and your original question monolith.
    How to configure SSL on soapUI for an endpoint requiring client authentication?
    Well, not the way we did it.

    Is it through the SSL settings in the soapUI preferences?
    I have sent the following post http://www.eviware.com/forums/index.php?topic=2158.0 last Friday but no response as yet.

    Arnaud
  • selkind's avatar
    selkind
    Occasional Contributor
    I'm also trying to figure out how to configure using a client cert - but with a RESTful service. 

    I also tried setting at the project level the keystore and client cert - security configurations -> keystores/certs -> and the keystore source, password, key alias, and key password.  This gives me a status of "OK".  When I try to test the request, I get a 401 Unauthorized.  Before I tear my hair out on the server side, is there some way to verify that the client cert is actually being used successfully? 

    I only see the server side cert in the SSL Info pane, I'm not sure if I should also be seeing the client cert.

    oh, yes v2.5.1