一. 转换PEM 证书
PEM to DER
openssl x509 -outform der -in certificate.pem -out certificate.der
PEM to P7B
openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b
-certfile CACert.cer
PEM to PFX
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in
certificate.crt -certfile CACert.crt
二. 转换P7B 证书
P7B to PEM
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
P7B to PFX
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out
certificate.pfx -certfile CACert.cer
三. 转换PFX 证书
PFX to PEM
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes
konwersja poprze OpenSSL
四. 转换DER 证书
DER to PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem (loadrunner)
切换至文件所有目录
注意:必须先下载openssl 工具,使用命令需切换到目标文件所在的目录之下
嵌套在loadrunner脚本里面的内容(不同情况,目标名称不同):
web_set_certificate_ex("CertFilePath=admin149.pem",
"CertFormat=PEM",
"KeyFilePath=admin149.pem",
"KeyFormat=PEM",
"Password=123456",
"CertIndex=1",
LAST);
PEM to DER
openssl x509 -outform der -in certificate.pem -out certificate.der
PEM to P7B
openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b
-certfile CACert.cer
PEM to PFX
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in
certificate.crt -certfile CACert.crt
二. 转换P7B 证书
P7B to PEM
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
P7B to PFX
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out
certificate.pfx -certfile CACert.cer
三. 转换PFX 证书
PFX to PEM
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes
konwersja poprze OpenSSL
四. 转换DER 证书
DER to PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem (loadrunner)
切换至文件所有目录
注意:必须先下载openssl 工具,使用命令需切换到目标文件所在的目录之下
嵌套在loadrunner脚本里面的内容(不同情况,目标名称不同):
web_set_certificate_ex("CertFilePath=admin149.pem",
"CertFormat=PEM",
"KeyFilePath=admin149.pem",
"KeyFormat=PEM",
"Password=123456",
"CertIndex=1",
LAST);