Install pxf cert on CentOS server


Step 1: check the httpd.conf whether it is missing the module or not then add it

LoadModule ssl_module modules/mod_ssl.so

Step 2: Install the openssl module:

yum install mod_ssl

Step 3: Download the pfx file with a password which issued by the issuer 

Step 4: Run the commands:

openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key

I also generated Certificate Authority (CA) certificate:

openssl pkcs12 -in domain.pfx -out domain-ca.crt -nodes -nokeys -cacerts

And included it in Apache config file:
<VirtualHost 192.168.0.1:443>
... 
SSLEngine on 
SSLCertificateFile /path/to/domain.cer 
SSLCertificateKeyFile /path/to/domain.key 
SSLCACertificateFile /path/to/domain-ca.crt 
... 
</VirtualHost>

Step 5: Restart the httpd service 

service restart httpd

Goodluck

Comments

Popular Posts