Merging certificat with private key
Posted on 2011-02-18
I'll try to explain my problem clearly :)
i need a certificat with a private key inside.
All my certificate are issued by verisign,
I've got a private key in a file "myprivatekey.pem"
I've got my certificate chain like that :
Verisign1 -> Verisign2 -> Mycert
theses certificat doesn't have any privatekey
I want to merge "Mycert.cer" and "myprivatekey.pem" to have a certificate with the private key.
I searched lot of stuff on internet and i tried many ways with openssl
like that :
verify my key:
openssl rsa -noout -text -in c:\ssl\myprivatekey.pem
--> OK !
i convert my cer files in pem files --> OK !
and when i tried to merge :
C:\OpenSSL-Win32\bin>openssl pkcs12 -export -inkey c:\ssl\myprivatekey.pem -i
n c:\ssl\mycert.pem -out pkcs12.p12 -name test
Loading 'screen' into random state - done
No certificate matches private key
i just can't understand ...