The following instructions will guide you through the SSL installation process on Apache OpenSSL
Make sure you have all the following files saved before proceeding:
Note: The above files should be saved to the server directory where all certificate/key files are stored.
Note: The SSL config file can be in a <VirtualHost> block in another config file. You can always search for the SSL conf file on Linux distributions using this grep command: grep -i -r "SSLCertificateFile" /etc/httpd/
<VirtualHost 209.123.546.123:443> – other config details- SSLEngine on SSLCertificateFile /etc/httpd/conf/ssl.crt/yourdomain.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/yourdomain.key SSLCertificateIntermediateFile /etc.httpd/conf/intermediate.crt </VirtualHost>
Note: If you need the site to load via https and http, create another virtual host for http. You can simply copy the existing config file before making any during this step.
Note: You may be asked to enter the password you generated with your RSA key. If you do not want to be asked for a password, you will need to re-generate your RSA key file.
Congratulations! You've successfully installed your SSL certificate! To check your work, visit the website in your browser at https://yourdomain.tld and view the certificate/site information to see if HTTPS/SSL is working properly. Remember, you may need to restart your server for changes to take effect.