Command openssl req -new -sha256 -key key.pem -subj "/C=FI" -out uno.csr
runs fine on my Ubuntu machine. Was expected the same in Windows machine, but got failure:
Can't open Z:/extlib/_openssl111__/ssl/openssl.cnf for reading, No such file or directory
3356:error:02001003:system library:fopen:No such process:crypto/bio/bss_file.c:69:fopen('Z:/extlib/_openssl111__/ssl/openssl.cnf','r')
3356:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
Why I'm getting this in Windows?
I found that by adding configuration file solves problem. Windows that runs fine with configuration file provided:
openssl req -new -sha256 -key key.pem -subj "/C=FI" -out uno.csr -config .\uno.ext
content of uno.ext:
[req]
distinguished_name = req_distinguished_name
[req_distinguished_name]
But how to solve problem without adding configuration file?