I would like to know how to use the openSSL tools to sign a certificate signing request with sha256 as the message digest.
I don't quite understand if the digest is already computed in the request, or if it is computed by the CA.
For creating the request, the tool req allows to specify which message digest to use, and -sha256 is an option.
However, for signing the requests, openSSL provides two tools: ca and x509. However, none of those allow for using sha256. According to the official documentation, ca only supports md5, sha1 and mdc2. x509 only supports md2, md5, sha1, mdc2.
Thank you.