相关疑难解决方法(0)

Linux上的openSSL证书验证

JKJS

我有这个证书链:rcert.pem(自签名) - > scert.pem - > ccert.pem

这三个证书都是由我生成的.没有任何地方可以使用互联网连接.这是完美的离线工作.现在,下面是一些命令及其输出:

hari@harikrishna:~/hari$ openssl verify rcert.pem
rcert.pem: C = IN, ST = OM, L = OM, O = HARI, OU = HARI, CN = OM, emailAddress = OM
error 18 at 0 depth lookup:self signed certificate
OK
hari@harikrishna:~/hari$ openssl verify -CAfile rcert.pem scert.pem
scert.pem: OK
hari@harikrishna:~/hari$ openssl verify -CAfile rcert.pem rcert.pem
rcert.pem: OK
hari@harikrishna:~/hari$ openssl verify -CAfile rcert.pem -untrusted scert.pem ccert.pem
ccert.pem: C = IN, ST = HARI, L = HARI, O = …
Run Code Online (Sandbox Code Playgroud)

openssl

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

openssl ×1