pgoovaerts
15 years agoNew Contributor
Connect to webservice using a certificate
Hi,
First this, i have little knowledge of webservices and (certificate) security authentication.
I need to connect to a webservice using soap/xml messages. I was told that i could use SoapUI for testing the connection, so i want to give it a try (and eventually buy it if it does what i expect).
i found out how to create a project, linked to the webservice-wsdl and have some actions to execute. When i execute an action, i get the following error: Error getting response; javax.net.ssl.SSLHandshakeException; Received fatal alert: handshake_failure
I expected this because it is a secured webservice for which a need certificate-based authentication.
Then i checked the options to do this.
1) preferences
In the preferences, i found and option to enter 'SSL Settings'. When i add my Certificate and password to the KeyStore, i can connect to the webservice.
2) at project level
I can add a certificate to the 'keystores/certificates' but then i get above error again.
3) at project level 2
There are also tabs for both outgoing- and incoming WS-Security Configurations. So i tried to add an outgoing WS-configuration.
- in the Add WSS Entry, i selected 'signature'
other options are (SAML - encryption -)
- i selected the keystore from the list
- i entered the password for the certificate
- then i tried to execute the request again : same error.
4) at webservice level
Then i also found an option to attach the Outgoing WSS at webservice-level. So i did... with same error
Finally i removed all security configs at project/webservice level, re-added the certificate/password at 'preferences' level. Then the request works again.
I'm definitely doing something wrong here. Shouldn't i be able to link my certificate at 'project' level in stead of using the Preferences (which imho are applied to all projects). I tried the manuals but cannot find the answers in it, no description found on how to create a SSL Certificate based connection.
any hints?
First this, i have little knowledge of webservices and (certificate) security authentication.
I need to connect to a webservice using soap/xml messages. I was told that i could use SoapUI for testing the connection, so i want to give it a try (and eventually buy it if it does what i expect).
i found out how to create a project, linked to the webservice-wsdl and have some actions to execute. When i execute an action, i get the following error: Error getting response; javax.net.ssl.SSLHandshakeException; Received fatal alert: handshake_failure
I expected this because it is a secured webservice for which a need certificate-based authentication.
Then i checked the options to do this.
1) preferences
In the preferences, i found and option to enter 'SSL Settings'. When i add my Certificate and password to the KeyStore, i can connect to the webservice.
2) at project level
I can add a certificate to the 'keystores/certificates' but then i get above error again.
3) at project level 2
There are also tabs for both outgoing- and incoming WS-Security Configurations. So i tried to add an outgoing WS-configuration.
- in the Add WSS Entry, i selected 'signature'
other options are (SAML - encryption -)
- i selected the keystore from the list
- i entered the password for the certificate
- then i tried to execute the request again : same error.
4) at webservice level
Then i also found an option to attach the Outgoing WSS at webservice-level. So i did... with same error
Finally i removed all security configs at project/webservice level, re-added the certificate/password at 'preferences' level. Then the request works again.
I'm definitely doing something wrong here. Shouldn't i be able to link my certificate at 'project' level in stead of using the Preferences (which imho are applied to all projects). I tried the manuals but cannot find the answers in it, no description found on how to create a SSL Certificate based connection.
any hints?