如何在本地(ubuntu)配置openssl?
按照这个文档 https://help.ubuntu.com/community/OpenSSL 配置,执行到 openssl ca -in tempreq.pem -out server_crt.pem
时,本地出现了
Using configuration from /home/username/myCA/caconfig.cnf
Error opening CA private key /home/username/myCA/private/cakey.pem
140021783320224:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/home/username/myCA/private/cakey.pem','r')
140021783320224:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
unable to load CA private key
和文档中不一样,为什么呢?Google了一下,说要加 -keyfile private/cakey.pem
,然后出现
Using configuration from /home/username/myCA/caconfig.cnf
Enter pass phrase for private/cakey.pem:
Error opening CA certificate /home/username/myCA/cacert.pem
139907629594272:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/home/username/myCA/cacert.pem','r')
139907629594272:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
继续Google,说要加 -cert cacert.pem
,然后出现
Using configuration from /home/username/myCA/caconfig.cnf
Enter pass phrase for private/cakey.pem:
CA certificate and CA private key do not match
140656015046304:error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:x509_cmp.c:331:
问题在哪呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论