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.
Asked
Active
Viewed 849 times
0

plaidshirt
- 5,189
- 19
- 91
- 181
2 Answers
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
-
I set it and execute `jmeter.bat`, but seemly it isn't uses these parameters. – plaidshirt May 08 '18 at 07:35
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
-
I set it and execute jmeter.bat, but seemly it isn't uses these parameters. – plaidshirt May 08 '18 at 10:11
-
`javax.net.ssl.keyStoreType=pkcs12 javax.net.ssl.keyStore=C:\ssl\mycertificate.p12 javax.net.ssl.keyStorePassword=pass` – plaidshirt May 09 '18 at 05:53