0

P12 certificate file is needed to execute testcase. I set it in JMeter in Options -> SSL Manager. It asks for password when testcase is executed, but it is working just until JMeter is restarted. After that I have to provide it again in SSL Manager.

plaidshirt
  • 5,189
  • 19
  • 91
  • 181

2 Answers2

1

Add the next lines to system.properties file (lives under "bin" folder of your JMeter installation)

javax.net.ssl.keyStoreType=pkcs12    
javax.net.ssl.keyStore=/path/to/certificate.p12
javax.net.ssl.keyStorePassword=certificate_password

JMeter restart will be required to pick the properties up

Alternatively you can pass the aforementioned properties to JMeter startup script via -D command-line arguments like:

jmeter -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStore=/path/to/certificate.p12 -Djavax.net.ssl.keyStorePassword=certificate_password 

References:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
0

Set in system.properties:

javax.net.ssl.keyStorePassword=password of file

javax.net.ssl.keyStore=path to file

Community
  • 1
  • 1
UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116