Skip to content

Conversation

@tuliomoreira77
Copy link

add the authenticatedAttribute signingCertificateV2.
where value is the sha256 hash of the entire DER Signing Certificate. Usage:
type:NodeForge.pki.oids.signingCertificateV2,
value: createHash(Buffer.from(NodeForge.pki.pemToDer(certificateToSign).getBytes(), 'binary')).toString('binary') //createHash is a generic function that receives a Buffer and return a buffer sha256 hash

add the authenticatedAttribute signingCertificateV2.
where value is the sha256 hash of the entire DER Signing Certificate. Usage:
type:NodeForge.pki.oids.signingCertificateV2,
value: createHash(Buffer.from(NodeForge.pki.pemToDer(certificateToSign).getBytes(), 'binary')).toString('binary')
Copy link
Contributor

@dhensby dhensby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would definitely be a nice low risk addition

@davidlehn davidlehn added this to the v1.x milestone Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants