converting .cer to .pem via php script |
|
I have cracked this issue myself ! Hereby i'm posting the solution so that any one still looking for the same issue can work out with this issue .
<?php //convert .cer file to .pem system('openssl x509 -in path/to/certificate_file.cer -inform DER -out path/to/certificate_file.pem -outform PEM '); // convert .p12 file to .pem [Note : if u used passphrase while encryting ur key , u need to mention it over here ] system('openssl pkcs12 -nocerts -out path/to/TestingKey.pem -in path/to/TestingKey.p12 -passout pass:yournewpassphrase -passin pass:initialpassphrase'); system('openssl rsa -in TestingKey.pem -out TestingKey-noenc.pem -passin pass:yournewpassphrase'); ?> |
||||||||||||
|
converting .cer to .pem via php script |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by