Sorry for the poor question. Suppose I have a certificate of the following lines:

     //22 Lines of encoded junk

And then this base64 encoded key


Is it possible to get the raw private key, I think something of this nature:

     //15 lines of encoded junk

How can I get that? I thik this was all done with openssl. Thanks


The certificate contains only the public key. By construction, it is not feasible to extract or recompute the private key from the public key.

  • Thanks for your response. So from the base64 encoded key, can I not get the private key? – TerrorKid Nov 10 '12 at 13:13
  • @TerrorKid "it is not feasible to extract or recompute the private key from the public key" – ewanm89 Nov 10 '12 at 13:41
  • @TerrorKid That's with supercomputers working for a while. – ewanm89 Nov 10 '12 at 13:42
  • @ewanm89 Ok but what is the base 64 encoded key for? – TerrorKid Nov 10 '12 at 13:44
  • it's the public key, base64 encoding is to send it as ascii text rather than pure binary so that it can go across any protocol. – ewanm89 Nov 10 '12 at 13:48

Acually it is possible to get the private key from the public key without a supercomputer if the key is less than 256 bits.

You can check this tutorial in French : http://www.parlonssecurite.com/factoriser-cracke-une-cle-rsa/

  • 1
    One has to do some major fiddling to get OpenSSL to generate an RSA keypair less than 1024 bits. But yes, if the key is small enough it is insecure welcome to the world of cryptography. – ewanm89 Nov 10 '12 at 15:27
  • And any certificate authority willing to sign certs with such small keys shouldn't have root certificates in any use. – ewanm89 Nov 10 '12 at 15:28

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.