Openssl – What is the public key default MD

opensslssl-certificate

In openssl.cnf default_md (use public key default MD) is set to default. How can I find out what the default is without generating a certificate? Is there a file I can check where it lists the default?

Best Answer

md stands for message digest and from openssl version 1.1 the default digest is sha256.

-md alg

the message digest to use. Any digest supported by the OpenSSL dgst command can be used. This option also applies to CRLs.

https://www.openssl.org/docs/manmaster/man1/ca.html

The default digest was changed from MD5 to SHA256 in Openssl 1.1.

https://www.openssl.org/docs/manmaster/man1/dgst.html