找开发要,或者自己从浏览器导出cer格式的证书,在转换成pem格式(详情百度),
得到pem格式的证书之后,在loadrunner->vuser窗口->tools->Port Mapping页面进行设置:
先点击New Entry按钮
进入Entry配置窗口,进行配置,如下图所示
配置完毕后,录制脚本,正常情况下,录制的脚本前面会出现证书信息,如下所示:
web_set_certificate_ex("CertFilePath=admin149.pem",
"CertFormat=PEM",
"KeyFilePath=admin149.pem",
"KeyFormat=PEM",
"Password=123456",
"CertIndex=1",
LAST);