The function objectToSignedExact looks like it could be used for signing a certificate, but (1) how would I do it if I had a RSA private key available and (2) would the result pass as a valid x509 certificate?
Also, given that the Certificate data type has a field certSignatureAlg then the public key type would need to match this, right? (as in: one must use an RSA private key for signing if the signature algorithm SignatureALG HashSHA256 PubKeyALG_RSA)
The function
objectToSignedExact
looks like it could be used for signing a certificate, but (1) how would I do it if I had a RSA private key available and (2) would the result pass as a valid x509 certificate?Also, given that the
Certificate
data type has a fieldcertSignatureAlg
then the public key type would need to match this, right? (as in: one must use an RSA private key for signing if the signature algorithmSignatureALG HashSHA256 PubKeyALG_RSA
)