First, Upload your .PFX file to server and With OpenSSL you can convert pfx to Apache compatible format with next commands:
Run Following Commands
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
First command extracts public key to domain.cer
.
Second command extracts private key to domain.key
.
Update your Apache configuration file with following Code
<VirtualHost *:443> ServerName www.domain.com SSLEngine on SSLCertificateFile "/etc/pki/tls/certs/domain.cer" SSLCertificateKeyFile "/etc/pki/tls/certs/domain.key" </VirtualHost>
Install MOD SSL
yum install mod_ssl
Modify .htaccess to Force SSL
RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
No Comment