Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Getting SSL certificate

A SSL certificate is issue by a Certificate Authority (CA). Your internal IT/IS team might be able to help you with this. You might have to submit the basic information in the form of CSR (Certificate Signing Request). Refer this page to regenerate CSR: https://in.godaddy.com/help/generating-a-certificate-signing-request-csr-apache-2x-5269

Configure Apache

Once you have the SSL certificate, you can proceed to configure Apache:

  1. Open "${apache_home}conf/httpd.conf" file 

  2. Search for the "LoadModule ssl_module modules/mod_ssl.so" and remove any pound sign(#) at the start of the line (i.e. un-comment it)

  3. Add below section at the end of the file:
Listen 443
<VirtualHost _default_:443>
  ServerAdmin <admin@domain.com>
  DocumentRoot "Your root folder location"
  ServerName www.domain.com:443
  ServerAlias domain.com:443
  ErrorLog "${apache_home}/logs/anyFile-error.log"
  CustomLog "${apache_home}/logs/anyFile-access.log"
  SSLEngine on
  SSLCertificateFile "${apache_home}/conf/server.crt"
  SSLCertificateKeyFile "${apache_home}/conf/server.key"
</VirtualHost>
 
 
Note: Make sure that "SSLCertificateFile" and "SSLCertificateKeyFile" are properly located.

                                 

 

  • No labels