如何在本地(ubuntu)配置openssl?
阿神
阿神 2017-04-21 10:55:37
0
0
465

按照这个文档 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:

问题在哪呢?

阿神
阿神

闭关修行中......

Antworte allen(0)
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage