简体   繁体   English

在 Jmeter 中使用证书和私钥

[英]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.

相关问题 如何使用keytool生成私钥证书 - how to generate a private key certificate using keytool 使用SSL CERTIFICATE,PRIVATE KEY和SSLCertificateChain CERTIFICATE在Tomcat上启用SSL - Enable SSL on Tomcat using SSL CERTIFICATE, PRIVATE KEY and SSLCertificateChain CERTIFICATE 证书的私钥 - Private key of the certificate Java - 使用证书和私钥发出 HTTP POST 请求 - Java - Using a certificate and private key to make an HTTP POST request 是否可以使用Java获取SSL证书的私钥 - Is it possible to fetch the private key of an SSL certificate using java 使用 cfssl 和 kubernetes 生成 CA 证书和私钥时出错 - Error generating CA certificate and private key using cfssl and kubernetes 使用浏览器的证书(私钥)对javascript中的某些字符串进行签名 - Using browser's certificate (private key) to sign some string in javascript SSL:使用 PHP 将私钥与证书匹配(没有 phpseclib) - SSL: match private key with certificate using PHP (without phpseclib) 使用证书、私钥和 CA 的 AWS Lambda NodeJS 请求 - AWS Lambda NodeJS Request using Certificate, Private Key and CA 如何使用mbedtls在libcurl中将PEM证书和私钥一起加载 - How to load PEM certificate together with private key in libcurl using mbedtls
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM