Information Security Stack Exchange is a question and answer site for information security professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
up vote 0 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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