Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2458)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (6617)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5331)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "ca" Error "unable to open ./demoCA/index.txt"
Why I am getting the "unable to open './demoCA/index.txt'" error when running OpenSSL "ca" command?
✍: FYIcenter.com
If you are running the OpenSSL "ca" command installed with the slproweb binary package for Windows, you may get the "unable to open './demoCA/index.txt'" error as shown below:
C:\Users\fyicenter>\local\OpenSSL-Win32\bin\openssl.exe OpenSSL> ca -in test.csr -keyfile my_ca.key -cert my_ca.crt Using configuration from C:\local\OpenSSL-Win32\bin\openssl.cfg Enter pass phrase for my_ca.key:fyicenter ./demoCA/index.txt: No such file or directory unable to open './demoCA/index.txt' 9632:error:02001002:system library:fopen:No such file or directory: .\crypto\bio\bss_file.c:398:fopen('./demoCA/index.txt','rb') 9632:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:400: error in ca
This error is caused by the "dir=./demoCA" and "database=$dir/index.txt" options in the configuration file. These options requires you to have a file called "\demoCA\index.txt" under the current directory to be used as a database to keep track new certificates issued by new.
Fixing this error is easy. Just create an empty file: ./demoCA/index.txt, as shown below:
C:\Users\fyicenter>copy CON demoCA\index.txt <Ctrl>-Z 1 file(s) copied. C:\Users\fyicenter>dir demoCA\index.txt 10:27 PM 0 index.txt
Note that press <Ctrl>-Z is the end the input stream to finish the copy command.
⇒ OpenSSL "ca" - "error while loading serial number"
⇐ OpenSSL "ca" Error "./demoCA/newcerts: No such file or directory"
2016-09-18, 18592👍, 0💬
Popular Posts:
Certificate summary - Owner: www.stumbleupon.com, "StumbleUpon, Inc.", L=San Francisco, ST=Californi...
Certificate summary - Owner: Starfield Secure Certificate Authority - G2, http://certs.starfieldte ch...
Certificate summary - Owner: badoo.com, Badoo Trading Limited, L=London, ST=London, GB, OID.2.5.4.17...
Certificate summary - Owner: *.bing.com Issuer: MSIT Machine Auth CA 2, Dredmond, Dcorp, Dmicrosoft,...
How to export the Website certificate to a file from Apple Safari? I can view the certificate used b...