简体   繁体   中英

Execution of threads with different certificate reference present in jks keystore

Execution of threads with different certificate reference present in jks keystore.

When i am trying to execute jmeter script having multiple thread groups and want every individual thread group should pickup different certificate from key store its not working at all. If I provided individual certificate 1st thread group and its loops execution is working fine.

Scenario are:

1.Thread group should have multiple users(threads) and some https upload request in multiple loop (working fine if single certificate details provided in system properties)

2.Multiple Thread group should have multiple users(threads) and some https upload request in multiple loop execution of thread should call different certificate details from jks keystore provided in system. properties

Please suggest solutions

There is Keystore Configuration element which scans the keystore for certificates so given you have multiple aliases there you should be able to use different SSL certificate for different virtual users.

JMeter密钥库配置

Make sure to set the following properties:

  • in system.properties

     javax.net.ssl.keyStore=path_to_keystore javax.net.ssl.keyStoreType=your keystore type (JKS or PCKS12) javax.net.ssl.keyStorePassword=password_of_keystore 
  • in user.properties

     https.use.cached.ssl.context=false 

More information: How to Use Multiple Certificates When Load Testing Secure Websites

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM