Facing following error when trying to regenerate OpenVPN keys:
sh-4.2$
sudo openssl ca -gencrl -keyfile pki/private/ca.key -cert pki/ca.crt -out pki/crl1.pem
Using configuration from /etc/pki/tls/openssl.cnf
Error opening CA private key pki/private/ca.key
140437765986208:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('pki/private/ca.key','r')
140437765986208:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
unable to load CA private key
sh-4.2$
sudo openssl ca -gencrl -keyfile pki/private/ca.key -cert pki/ca.crt -out pki/crl1.pem
Using configuration from /etc/pki/tls/openssl.cnf
Error opening CA private key pki/private/ca.key
140437765986208:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('pki/private/ca.key','r')
140437765986208:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
unable to load CA private key
Comment