1

I have a private certificate from my email server in order to sign emails. At Section "Your S/MIME Personal Certificate" I can view my:

  • private certificate
  • public certificate

My public certificate starts with:

-----BEGIN CERTIFICATE-----

My private certificate starts with:

Key Attributes
    X509v3 Key Usage: 10 
-----BEGIN ENCRYPTED PRIVATE KEY-----

This private certificate contains a private key?
If yes is there any way to find it?

1
  • Can you explain what you are trying to do? It might help you get better answers. Dec 4, 2015 at 16:26

2 Answers 2

3

First of all, there are no private certificates. There are only private keys.

This is private key, but only in its encrypted form:

Key Attributes
    X509v3 Key Usage: 10 
-----BEGIN ENCRYPTED PRIVATE KEY-----

You are able decrypt that and you will get your private key. A common tool for this is for example OpenSSL.

0

The private key is right there after this line -----BEGIN ENCRYPTED PRIVATE KEY-----

Encrypted means it is protected (encrypted) with the password of the private key. You should have this. The result of the encryption of the password + the original private key is the encrypted key in your X.509 certificate. You can decrypt it with your password and use the key.

Did you try to import the certificates into your email client or encryption software which manages the keys?

This is all defined in the corresponding RFCs, see here http://www.cryptosys.net/pki/rsakeyformats.html

Creating a new key pair

The function RSA_MakeKeys creates a new RSA key pair in two files, one for the public key and one for the private key. The private key is saved in encrypted form, protected by a password supplied by the user, so it is never saved explicitly to disk in the clear.
2
  • so they key is not encrypted as it says (ENCRYPTED PRIVATE KEY). I can use it right away to decrypt message that are used my public key for encryption?
    – Zis Mat
    Dec 4, 2015 at 13:55
  • You just have to import the certificate. The X509 contains encrypted data. What is the extension of the file? p12? Then the private key is password protected with the password for the private key. I have updated my answer.
    – user6090
    Dec 4, 2015 at 14:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .