1) Создаю корневой сертификат
openssl req -x509 -days 1460 -newkey rsa:2048 \
-keyout strongswanKey.pem -out strongswanCert.pem
2)
оздаём 1024 bit RSA приватный ключ moonkey.pem и запрос на сертификат mooncert.pem
openssl req -newkey rsa:1024 -keyout moonkey.pem
-out mooncert.pem
3)
openssl ca -in moonkey.pem -days 730 -out mooncert.pem
-notext
Получаю
root@debtest:/# openssl ca -in moonkey.pem -days 730 -out mooncert.pem
Using configuration from /usr/lib/ssl/openssl.cnf
Error opening CA private key ./demoCA/private/cakey.pem
13062:error:02001002:system library:fopen:No such file or directory:bss_file.c:356:fopen('./demoCA/private/cakey.pem','r')
13062:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:358:
unable to load CA private key
Где ошибся ?