I need to generate some ssl keys for a VPN package im trying to get going (OpenVPN). I have never generated keys before and it keeps failing on the third comand. This is what I am trying to do:
Code:
openssl req -nodes -new -x509 -keyout my-ca.key -out my-ca.crt -days 3650
openssl req -nodes -new -keyout office.key -out office.csr
openssl ca -out office.crt -in office.csr <--------- this is where it fails!!!!
openssl req -nodes -new -keyout home.key -out home.csr
openssl ca -out home.crt -in home.csr
openssl dhparam -out dh1024.pem 1024
I type
Code:
openssl ca -out office.crt -in office.csr
at the console and I get the folowing error
Code:
[root@phantombox ssl]# openssl ca -out office.crt -in office.csr
Using configuration from /usr/share/ssl/openssl.cnf
Error opening CA private key ./demoCA/private/cakey.pem
26104:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('./demoCA/private/cakey.pem','r')
26104:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
unable to load CA private key
[root@phantombox ssl]# Error opening CA private key ./demoCA/private/cakey.pem
-bash: Error: command not found
I really could use some help. I am really stuck.