While trying to generate Certificates and Keystore for SOI Manager or samUI and following Generate Certificates and Keystore you get the following error on step c: sign the server certificate with the root key command: openssl.exe ca -keyfile CASOIRoot.key -cert CASOIRoot.pem -notext -in soi1.csr -out soi1.crt -days 3650
Error:
Using configuration from C:\CERTS\openssl.cnf08040000:error:80000002:system library:BIO_new_file:No such file or directory:crypto\bio\bss_file.c:67:calling fopen(./demoCA/index.txt,r)08040000:error:80000080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:75:Problem with index file: ./demoCA/index.txt (could not load/parse file)
SOI 4.3
When using the openssl command, OpenSSL expects a specific directory structure (the CA directory) to exist and contain certain files.
By default, OpenSSL expects the CA files under ./demoCA/ if the file and directory is not there it will generate this error.
Run the following commands:
mkdir demoCAmkdir demoCA\certs demoCA\crl demoCA\newcerts demoCA\private
type NUL > demoCA\index.txt
echo 1000 > demoCA\serialNow Verify both files
dir demoCAtype demoCA\serialtype demoCA\index.txt
You should see something like:
After this run again the same command and it should suceded:
openssl.exe ca -keyfile CASOIRoot.key -cert CASOIRoot.pem -notext -in soi1.csr -out soi1.crt -days 3650