scala – ssl – 错误自签名证书获取链
发布时间:2020-12-16 18:28:46 所属栏目:安全 来源:网络整理
导读:我正在学习使用Gatling来测试场景 我一直在做文档指南 http://gatling.io/docs/2.1.7/http/recorder.html 由于我的待测试方案包括使用Google帐户登录,因此缺少证书会被拒绝.我按照指南生成证书 openssl genrsa -out rootCA.key 2048openssl req -x509 -new -
我正在学习使用Gatling来测试场景
我一直在做文档指南 由于我的待测试方案包括使用Google帐户登录,因此缺少证书会被拒绝.我按照指南生成证书 openssl genrsa -out rootCA.key 2048 openssl req -x509 -new -nodes -key rootCA.key -days 1 -out rootCA.pem openssl x509 -outform der -in rootCA.pem -out gatlingCA.crt openssl genrsa -out device.key 2048 openssl req -new -key device.key -out device.csr openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 1 openssl pkcs12 -export -in device.crt -inkey device.key -out server.p12 -name gatling -CAfile rootCA.pem -caname gatling -chain keytool -importkeystore -deststorepass gatling -destkeypass gatling -destkeystore gatling-custom.jks -srckeystore server.p12 -srcstoretype PKCS12 -srcstorepass gatling -alias gatling 但是在这个命令之后 openssl pkcs12 -export -in device.crt -inkey device.key -out server.p12 -name gatling -CAfile rootCA.pem -caname gatling -chain 终端警告错误:错误自签名证书获取链 如果我想继续使用用户会话创建我的场景,然后用它来测试,接下来要做什么? 解决方法
“错误自签名证书获取链”.通过为两个证书输入相同的可分辨名称数据可能导致错误.输入不同的信息,这不应再出错.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |