Web Projects Consulting

Self-Signed SSL Certificate

Adapted from this article.

sudo yum -y install mod_ssl openssl openssl-devel
sudo mkdir /usr/share/ssl
sudo openssl genrsa -des3 -out server.key 1024
sudo openssl req -new -key server.key -out server.csr
sudo cp server.key server.key.org
sudo openssl rsa -in server.key.org -out server.key
sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
sudo cp server.crt /etc/httpd/conf/
sudo cp server.key /etc/httpd/conf/

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.