[英]Using certificate and private key in Jmeter
I have two file representing a certificate and the related private key.我有两个文件代表一个证书和相关的私钥。 I have to do some tests in Jmeter non-GUI and I don't know how to set this two files separately, because I read that Jmeter uses keystore settings in system-properties file, but I can't merge certificate and private key files in one.
我必须在 Jmeter 非 GUI 中做一些测试,我不知道如何分别设置这两个文件,因为我读到 Jmeter 使用系统属性文件中的密钥库设置,但我无法合并证书和私钥文件在一个。 Is there some parameters to be set to achieve this?
是否需要设置一些参数来实现这一点?
I can't merge certificate and private key files in one
我无法将证书和私钥文件合并为一个
that's not true, you can do this using ie OpenSSL tool like:这不是真的,您可以使用OpenSSL 工具来执行此操作,例如:
openssl pkcs12 -export -out jmeterkeystore.p12 -inkey your.private.key -in your.certificate
Once done you can add the next lines to system.properties file (lives in "bin" folder of your JMeter installation)完成后,您可以将下一行添加到system.properties文件(位于 JMeter 安装的“bin”文件夹中)
javax.net.ssl.keyStoreType=pkcs12
javax.net.ssl.keyStore=/path/to/your/jmeterkeystore.p12
javax.net.ssl.keyStorePassword=your_keystore_password_here
More information: How to Set Your JMeter Load Test to Use Client Side Certificates更多信息: 如何设置 JMeter 负载测试以使用客户端证书
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.