2 Replies Latest reply on Dec 7, 2016 3:02 AM by sreekanth.munarai

    SSL using PFX file in Apache

    sreekanth.munarai

      Hi All,

       

      Am trying to create https link of my application using PFX certificates in Apache 2.4

       

      Could any one please help me how to achieve the same.

       

      Thanks,

      Sreekanth

        • 1. Re: SSL using PFX file in Apache
          pjhavariotis

          For your info, pfx is equivalent to pkcs12.

          All you have to do is to generate a .key file and a .crt file from a .p12 file, with the help of openssl (https://www.openssl.org/docs/man1.0.2/apps/pkcs12.html)

           

          To help you, you can try the following commands:

          openssl pkcs12 -in <pfx_cert>.pfx -nocerts -out <SSLCertificateKeyFile>.key

          openssl pkcs12 -in <pfx_cert>.pfx -clcerts -nokeys -out <SSLCertificateFile>.crt

          • 2. Re: SSL using PFX file in Apache
            sreekanth.munarai

            Hi Panagiotis,

             

            Thanks for the suggestions. Have followed the same and everything as expected.

            The above command to create .key file generates encrypted key file which may trouble in process. To avoid the same we need to generate decrypted code by below command:

            openssl rsa -in [.key] -out [decrypted.key]

             

            Place the above file at old Key file and rest works as expected.Cheers!!