loadrunner中对https证书的配置
![此博文包含图片](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
标签: loadrunner证书https | 分类:loadrunner |
1、先访问要压测的网站地址,从浏览器中将证书导出,或者直接找开发人员要这个证书;
一般证书是cer格式;
这里就需要用到openssl工具,进入cmd命令窗口,进入openssl的安装目录,输入命令将证书转换为pem格
式,详情请参考上面两篇博文;
先点击NewEntry按钮,如下图所示:
2、因为loadrunner只支持pem格式的证书,所以要将证书转换格式;
3、得到pem格式的证书之后,在loadrunner->vuser窗口->tools->PortMapping页面进行设置:
进入Entry配置窗口,进行配置,如下图所示
web_set_certificate_ex("CertFilePath=admin149.pem", "CertFormat=PEM", "KeyFilePath=admin149.pem", "KeyFormat=PEM", "Password=123456", "CertIndex=1", LAST);