0
votes

I am facing issue with the execution of the APIs in Jmeter. Our APIs have client certificate in .pfx format. I have converted the same in .jks and updated the same in the system.properties of jmeter. In jmeter I have created a csv file to pick up the created alias. However, the error is shown as

Error: Response message: Non HTTP response message: java.lang.IllegalArgumentException: No certificate found for alias:'certalias'

Below is my alias info: Alias name: certalias Creation date: Nov 8, 2018 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]:

Jmeter Log: 2018-11-13 11:16:08,949 WARN o.a.j.u.SSLManager: Keystore file not found, loading empty keystore

Can you please help me with the integration of our client certificate with the Jmeter.

Thanks in advance.

1
can you show your test plan and content of system.properties ? thx - UBIK LOAD PACK

1 Answers

0
votes

I don't think you need to convert the .pfx into as .pfx is a PKCS12 certificate type and JMeter should support it out of the box.

Make sure to add the next lines to system.properties file:

javax.net.ssl.keyStore=your_certificate.pfx
javax.net.ssl.keyStorePassword=your_certificate_password
javax.net.ssl.keyStoreType=pkcs12

JMeter restart will be required to pick the properties up.

If you have > 1 certificates in the keystore you can select the exact certificate(s) by setting the following properties

https.keyStoreStartIndex=0
https.keyStoreEndIndex=0

By default JMeter will go for the first certificate in the keystore, if your certalias is not the first - amend the properties accordingly.

More information: How to Set Your JMeter Load Test to Use Client Side Certificates