1.如有需要转化pfx为pem 2.cmd目录/LoadRunner9/bin然后openssl.exe 3.执行命令pkcs12 -in ff.pfx -out ff.pem即可转化生成文件 4.Action脚本中: web_set_certificate_ex web_set_certificate_ex( "CertFilePath=d://ff.pem", "CertFormat=PEM", "KeyFilePath=d://ff.pem", "KeyFormat=PEM", "Password=11111111", LAST); 或者ctrl+F7添加一个代理,service为http,连接类型为ssl,然后 勾选use specified client-side certificate 找到pem文件路径,输入密码然后update,再录制即可.