Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Convert SSL Certificate from IIS formatted (PKCS#12/.pfx)This document assumes your IIS server is already configured with an SSL certificate from either a public certificate authority (such as Digicert or Thawte) or a private organazitional certificate authority within your organization. So, first get your IIS server configured with your SSL certificate, the following steps hopefully will assist you to get the Apache formatted certificate and key files that you can then use with the appxConnector and appxMongConnector. This process will make use of an opensource tool called openssl. It is included in MacOS, available for free installation (via DNF or YUM) in Linux, and freely downloadable for Windows from here. The openssl syntax shown below should be the same no matter the platform you are on.Export your IIS certificate into a .PFX file
Extract the server's private key from the .PFXHere we will export the private key file from the .PFX file. $ openssl pkcs12 -in filename.pfx -nocerts -out keyfile.pemExtract the certificate file from the .PFXNow let's export the certificate file from the .PFX file. $ openssl pkcs12 -in filename.pfx -clcerts -nokeys -out certificate.crtRemove the passphrase by copying key to new file without passphraseHere we are removing the passphrase from the private key. You'll not want the key file passphrase protected for this. $ openssl rsa -in keyfile.pem -out server.key -- Joe Ortagus - 2020-11-18Comments |