ssl-错误的自签名证书获取链 [英] ssl - Error self signed certificate getting chain

查看:193
本文介绍了ssl-错误的自签名证书获取链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习使用加特林测试场景

I'm learning to use Gatling to test scenario

我一直在使用此处文档中的指南
http://gatling.io/docs/2.1.7/http/recorder.html

I've been doing with guide from documentation here http://gatling.io/docs/2.1.7/http/recorder.html

由于我要测试的场景包括使用Google帐户登录,因此由于缺少证书而被拒绝。我遵循了准则来生成证书

Because my to-be-tested scenario includes logging in with Google Account, it is rejected due to lack of certificate. I followed guidelines to generate a certificate

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链

终端会提示错误:错误的自签名证书获取链

如果我想继续通过用户会话创建场景,然后使用它进行测试,该怎么办?

What's next to do if I want to continue to create my scenario with user session, then use it to test?

推荐答案

自签名证书获取链出错。为两个证书输入相同的专有名称数据可能导致错误。输入其他信息,这不再是错误。

The "Error self signed certificate getting chain." error can be caused by entering identical Distinguished Name data for both of the certificates. Enter different information and this should no longer error.

这篇关于ssl-错误的自签名证书获取链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆