Tag Archives: Certificate

Export Website RSA Private Key for Apache Server Certificate from OS X Server

If you’re using OS X Server and MAMP Pro at the same time, and you’d like to export OS X site certificates to use them for MAMP Pro sites, you can do the following:

  • Locate certificate (Category -> Certificates)
  • control + click -> Export… -> Certificate.p12

Next, I need to split the PKCS12 archive, to get the old private key out:

$ openssl pkcs12 -in site.p12 -nocerts -out site.key

Remove passphrase from the key (otherwise you have to enter it lots when you restart services.)

$ openssl rsa -in site.key -out site.unprotected.key

Read more: Renewing a SSL Certificate on OSX Server