Victor
Victor

Reputation: 13

JMeter : SOAP Message Signer Plugin

I am trying to send a SOAP request(signed) using HTTP Request Sampler along with SOAP Message Signer plugin. Request works fine with SOAPUI. It seems to fail through JMeter if i use same parameters(for SOAP Message Signer).

As a part of SOAP Request, Header needs to be signed. I am getting the below error while Signing. Could anyone please let me know the reason for failure?

n.c.b.j.m.AbstractWSSecurityPreProcessor: Building WSS header o.a.w.d.m.WSSecSignature: Beginning signing... ERROR n.c.b.j.m.AbstractWSSecurityPreProcessor: org.apache.wss4j.common.ext.WSSecurityException: No certificates for user "cert_alias" were found for signature

Upvotes: 0

Views: 1294

Answers (3)

Victor
Victor

Reputation: 13

Finally i was able to send a successful request using the plugin. I was using the Signed Header as a part of SOAP request. Plugin Config: Keystore File : Path to .jks file Keystore Password : password Cert Alias - cert_alias Cert Password - cert password

After removing the Signed Header from the SOAP request, it worked. Thanks you.

Upvotes: 1

Dmitri T
Dmitri T

Reputation: 168042

If your SOAP endpoint expects the message to be encrypted with a client-side certificate you can configure JMeter to use it by adding the next lines to system.properties file:

javax.net.ssl.keyStoreType=pkcs12 or jks  
javax.net.ssl.keyStore=/path/to/your/jsk keystore or .p12 certificate
javax.net.ssl.keyStorePassword=your certificate or keystore password

JMeter restart will be required to pick the properties up.

You can also pass them via -D command line argument like:

jmeter -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStore=your-certificate.p12 -Djavax.net.ssl.keyStorePassword=secret

More information:

Upvotes: 0

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34526

Did you add in jmeter keystore the certificate under alias cert_alias?

That's what message is saying:

No certificates for user "cert_alias" were found for signature

Keystore is located in jmeter/bin folder

You may want to try this plugin:

Upvotes: 1

Related Questions