Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (982)
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 (3315)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2663)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "ca" Error "... directory for new certificate ..."
Why I am getting the "there needs to be defined a directory for new certificate to be placed in" error when running OpenSSL "ca" command?
✍: FYIcenter.com
You are getting the "there needs to be defined a directory for new certificate to be placed in" error,
because OpenSSL "ca" command can not find the required "new_certs_dir" option
in the configuration file.
For example, if you have the follow configuration file, test.cnf, without "new_certs_dir" option defined:
C:\Users\fyicenter>type test.cnf # Unnamed section of generic options # section for the "default_ca" option [ca] default_ca = my_ca_default
You will get an error, because "new_certs_dir" is a required option:
C:\Users\fyicenter>\local\OpenSSL-Win32\bin\openssl.exe OpenSSL> ca -in test.csr -keyfile my_ca.key -cert my_ca.crt -config test.cnf Using configuration from test.cnf Enter pass phrase for my_ca.key:fyicenter there needs to be defined a directory for new certificate to be placed in 5956:error:0E06D06C:configuration file routines:NCONF_get_string: no value:.\crypto\conf\conf_lib.c:324:group=my_ca_default name=new_certs_dir error in ca
Fixing this error is easy. Just add the "new_certs_dir" option in the section pointed by the "default_ca" option in the configuration file:
C:\Users\fyicenter>type test.cnf # Unnamed section of generic options # section for the "default_ca" option [ca] default_ca = my_ca_default # default section for "ca" command options [my_ca_default] new_certs_dir = ./my_ca/certs
Remember to create directory .\my_ca\certs, if it does not exist. A copy of each new certificate will be stored in this directory.
⇒ OpenSSL "ca" Error "lookup failed for ca::database"
2016-09-09, 10104👍, 0💬
Popular Posts:
How to print CSR information in text format using OpenSSL "req -text" command? If you want to see co...
Certificate summary - Owner: UTN-USERFirst-Hardware, http://www.usertrust.com ,The USERTRUST Network...
How to read general information of a server certificate in IE? What is the meaning of "Issued by"? T...
How to create my private key and store it in a file using "makecert.exe"? If you want to create a pr...
What is getacert.com? Can I use it to generate a PKI certificate? Is it free? getaCert is a free ser...