Collections:
Other Resources:
OpenSSL "ca" Error "lookup failed for ca::default_md"
Why I am getting the "variable lookup failed for ca::default_md" error when running OpenSSL "ca" command?
✍: FYIcenter.com
You are getting the "variable lookup failed for ca::default_md" error,
because OpenSSL "ca" command can not find the required "default_md" option
in the configuration file.
For example, if you have the follow configuration file, test.cnf, without "default_md" option defined:
# 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 database = ./my_ca/certs.db
You will get an error, because "default_md" 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
variable lookup failed for my_ca_default::default_md
5816:error:02001002:system library:fopen:No such file or directory:
.\crypto\bio\bss_file.c:175:fopen('./my_ca/certs.db.attr','rb')
5816:error:2006D080:BIO routines:BIO_new_file:no such file:
.\crypto\bio\bss_file.c:178:
5816:error:0E078072:configuration file routines:DEF_LOAD:no such file:
.\crypto\conf\conf_def.c:195:
5816:error:0E06D06C:configuration file routines:NCONF_get_string:no value:
.\crypto\conf\conf_lib.c:324:group=my_ca_default name=default_md
error in ca
Fixing this error is easy. Just add the "default_md" option in the section pointed by the "default_ca" option in the configuration file:
# 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 database = ./my_ca/certs.db default_md = md5
"default_md = md5" tells OpenSSL to use MD5 as the message digest algorithm, when generating the digital signature in the certificate.
⇒ OpenSSL "ca" Error "lookup failed for ca::policy"
2016-09-08, ≈12🔥, 0💬
Popular Posts:
How to download Mozilla "certutil" tool for Windows? I know it can be used to manage cert8.gb and ke...
How to print DSA private key contents in text format using OpenSSL "dsa" command? If you want to see...
Certificate summary - Owner: t.co, Twitter Security, "Twitter, Inc.", L=San Francisco, ST=California...
How to read general information of a server certificate in Google Chrome 51? This tutorial will help...
Certificate summary - Owner: www.istockphoto.com, External Applications, iStockphoto LP, L=Calgary, ...