Installing SSL on a Amazon EC2 box

May 24, 2016 by admin Category: Blog, Development 0 comments

Installing SSL

cd /etc/ssl
openssl req -nodes -newkey rsa:2048 -keyout -out
Country Name (2 letter code) [XX]:GB
State or Province Name (full name) []:Cardiff
Locality Name (eg, city) [Default City]:Cardiff
Organization Name (eg, company) [Default Company Ltd]:Your Domain Ltd
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []
Email Address []
sudo vim your_domain_name.csr

Paste this into globe ssl and then validate cert. You should then receive a email with a ca-bundle and a .crt file.

yum install mod24_ssl
cd /etc/httpd/conf.d/
vim ssl.conf 

Error checking if needed

 vim /var/log/httpd/ssl_error_log

After approved get your globessl information from your account.

You only need the following

SSLCertificateFile /etc/ssl/
SSLCertificateKeyFile /etc/ssl/
SSLCACertificateFile /etc/ssl/
sudo service httpd restart

Test your cert

Leave a Comment!

You must be logged in to post a comment.