0

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?

vico
  • 17,051
  • 45
  • 159
  • 315
  • 1
    Does this answer your question? [Can't open config file: /usr/local/ssl/openssl.cnf on Windows](https://stackoverflow.com/questions/16658038/cant-open-config-file-usr-local-ssl-openssl-cnf-on-windows) – Topaco Mar 10 '23 at 13:57

0 Answers0