0

I have a RSA SSH public key which I have converted from a x509 certificate and I want to be able to convert the SSH key back into a x509 certificate to compare the values with the original certificate.

How would I got about doing this? And is this even possible to do with only the public key?

Thanks.

0

It is not possible to create a certificate out of the public key on the way you chose.

A certificate is a public key signed by an authority (normally a CA). So to create the certificate back from you public key you have to sign the public key from the same authority as before. Then you will get the certificate back.

To sign you need the private key of the authority. Also be aware that you new certificate willget another seriall number than before.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.