I would like to know how to use openSSL tools to sign a certificate signing request using sha256 as a digest message.
I do not quite understand if the digest is already calculated in the request, or if it is calculated by the CA.
To create a query, the req tool lets you specify which message digest to use, and -sha256 is an option.
However, openSSL provides two tools for signing requests: ca and x509 . However, none of them allows you to use sha256. According to official documentation, ca only supports md5, sha1 and mdc2. x509 only supports md2, md5, sha1, mdc2.
Thank.
source
share