Forums

OpenSSL openssl.cnf

Hello,

I am trying to follow the instructions detailed in this link: https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/Certificate+Generation+With+XCA

I am able to run: openssl genrsa -out client-2048.key 2048

but when I try to run:

openssl req -new -config openssl.cnf -key client-2048.key -out client-2048.csr

I get an error message saying:

Can't open openssl.cnf for reading, No such file or directory 140668627129664:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('openssl.cnf','r') 140668627129664:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:

Any ideas? Any and all help appreciated!

Thanks in advance!

The config file that you want to use is at /usr/lib/ssl/openssl.cnf

Thank you!!

Following the steps from my initial link, the next error appears when I put in:

**openssl x509 -req -days 365 -in client-2048.csr -signkey client-2048.key -out client-2048.crt -extfile /usr/lib/ssl/openssl.cnf -extensions **

error message: Error Loading extension section ssl_client

Help again much appreciated!

It looks like we do not have that extension enabled, so you will not be able to run that on PythonAnywhere.