"Error opening CA private key" on Windows

I am running on Windows Server 2003 and installed Win64 OpenSSL v1.0.1i Light

No matter which guide I use to configure it, I always get the following error when trying to actually sign a certificate

openssl ca -in my.csr -out my.cert.pem

Using configuration from C: \ OpenSSL-Win64 \ bin \ openssl.cfg
Loading the "screen" in a random state - done
Error opening private key CA./myCA/private/myCA.key.pem
1776: error: 02001003: system library: fopen: There is no such process:. \ Crypto \ bio \ bss_file.c: 398: fopen ('./myCA/private/myCA.key.pem', 'rb')
1776: error: 20074002: BIO routines: FILE_CTRL: system lib:. \ Crypto \ bio \ bss_file.c: 400:
failed to load CA private key

Key paths exist (marked three and four times).
However, I don’t know what that .\crypto\ it is looking for.

I did not have this problem using the preloaded Mac OS openssl , so I believe that there is a preliminary need for an environment that is missing ...

+1
source share
1 answer

The path to myCA.key.pem relative, so it depends on which directory you run openssl in. If your working directory is C:/OpenSSL-Win64/bin/ , then the path to the CA private key should be C:/OpenSSL-Win64/bin/myCA/private/myCA.key.pem

+2
source

All Articles