Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to sign a certificate with a private key? #124

Open
eyeinsky opened this issue Jan 10, 2021 · 1 comment
Open

Is there a way to sign a certificate with a private key? #124

eyeinsky opened this issue Jan 10, 2021 · 1 comment

Comments

@eyeinsky
Copy link

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)

@eyeinsky eyeinsky changed the title Is there a way to sign a certificate? Is there a way to sign a certificate with a private key? Jan 10, 2021
@l29ah
Copy link

l29ah commented Mar 14, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants