How Can We Help?
< All Topics
You are here:
Print

Installing Existing Certificate on Linux/Apache

Using the pfx file from Windows run the following commands using it as your ‘in’ file to export the certificate and key files

openssl pkcs12 -in STAR2022.pfx -nocerts -out star2022-E.key -nodes
openssl pkcs12 -in STAR2022.pfx -nokeys -out star2022.pem -nodes

Then remove the password from the key file

openssl rsa -in STAR2022-E.key -out star2022.key

Locate the Apache conf file in which SSL is configured. (i.e. /etc/httpd/conf.d/ssl.conf)
Edit the file using vi or nano noting then changing the following lines.

SSLCertificateFile /etc/pki/tls/certs/2016star.pem
SSLCertificateFile /etc/pki/tls/certs/currentyearstar.pem
SSLCertificateKeyFile /etc/pki/tls/private/2016star.key
SSLCertificateKeyFile /etc/pki/tls/private/currentyearstar.key

Open WinSCP and connect to the server in question.
Browse to the directories shown above and copy the appropriate files into them. Restart Apache (i.e. service httpd restart)

Table of Contents