Divyanxi Mistry
Divyanxi Mistry

Reputation: 1

How to create private key from SSL certificate?

I want to create private for ssl certificate which is in CER format. I have CER format certificate and PKCS #7 certificate with that.

are private key available on-server only or do we get them with certificate separately? i am working with Apache on windows

Upvotes: 0

Views: 1279

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123320

Based on your description you have only the certificate. This certificate contains the public key. You cannot create a private key from it because of how Public Key Cryptography works.

If you could create the private key from any certificate you could essentially authenticate yourself as an arbitrary server on the internet and man in the middle attacks would be easy. Thus, it is good that you cannot get a private key from a certificate.

Upvotes: 3

Related Questions