按照以下教程关联创建根对和中间对。
创建根对工作正常,但是当我尝试使用以下命令创建中间对时:
openssl ca -config openssl.cnf -extensions v3_intermediate_ca -days 3650 -notext -md sha256 -in intermediate/csr/intermediate.csr.pem -out intermediate/certs/intermediate.cert.pem
我收到以下错误:
Using Configuration from openssl.cnf
Can't open /root/ca/private/ca.key.pem for reading, No such file or directory
140382210524824:error:02001002:system library:fopen:No such file or directory:crypto/bios/bss_file.c:398:fopen('/root/ca/private/ca.key.pem','r')
140382210524824:error:20074002:BIO routines:BIO_new_file:no such file:crypto/bios/bss_file.c:76:
unable to load CA private key
ca.key.pem 文件使用以下方式加密:
chmod 400 private/ca.key.pem
并且我验证了我可以使用以下命令查看 CA 的私钥文件:
ls /root/ca/private/ca.key.pem
怎么了?