Rawr!!!

[Tutorial] SSL IIS > Apache (Export Windows Server SSL Cert to Apache)

Written by
July 15th, 2010

Export Keys from a windows server to apache server:

1) Startup mmc
    a] File > Add/Remove Snap in > Certificates:
        a1} Computer Account > Local Computer (Finish with “OK”
    b] Select Certificates >> Personal >> Certificates
    c] Select Certificate (*.domainname.com)
        b1} Right click > All Tasks > Export
[simage=11202,max,n,center,]

        b2} “Yes, Export the private Key”
[simage=130,max,n,center,]

        b3} next (use defaults [PKCS #12 no boxes checked})
        b4} password (<enter anything>) << you are setting this password
        b5} Name your export && Finish

2) Extract the Key & Certificate from the pkcs file & enjoy
    a] Export the Private key:
       

openssl pkcs12 -in filename.pfx -nocerts -out key.pem

    b] Export the certificate file:
       

openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem

    c] Remove the passphrase from the key so apache won’t prompt for passphrase:
       

openssl rsa -in key.pem -out server.key

Posted in: Tutorials |

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>