I bought a Godaddy Certificate, I properly installed it on my small Mac Server, now i see 2 entry within Keychain Application:

  • Go Dad Secure Certification Authority
  • mydomain
    • mydomain (private key)

I Quickly added the certificate (mydomain.com) to some VirtualHost of httpd.conf file, so:

<VirtualHost *:443>
     DocumentRoot "/Library/ApacheTomcat/apache-tomcat-6.0.33/webapps/MyServerAppName"
     ServerName mydomain.com
     ErrorLog "/private/var/log/apache2/mydomain.com-error_log"
     CustomLog "/private/var/log/apache2/mydomain.com-access_log" common
     SSLCertificateFile /etc/apache2/mydomain.cer
     JkMountCopy On
     JkMount /* ajp13
</VirtualHost>

Then, I suppose, I additionally require the private key file, otherwise Apache fails to handle certificate... Are you able to help me... I'm able to save the certificates from Apple Keychain into .pem and .cer file.

Within the Keychain, export your private key and certificate in PKCS#12 format (.p12 file, Private Information Exchange). You need to have the ability to do that using by growing your private key entry (in Keychain Access), right-hitting its certificate and taking advantage of Export. It'll most likely request you for any password to safeguard this p12 file.

Then, within the Terminal, extract the non-public key using OpenSSL:

 umask 0077
 openssl pkcs12 -in filename.p12 -nocerts -nodes -out filename-key.pem
 umask 0022
  • Note that you ought to safeguard this file, because the private key won't be password protected (to ensure that you can use it by Apache Httpd).

Similarly, for that certificate (even though it appears you might have diabetes already in PEM format, so you may not require this task):

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

Then, set the [cde] (cert) and [cde] (private key) choices to indicate these files inside your Apache Httpd configuration.