Web Development

Creating a self signed SSL cert

Install open-ssl

Then put in:

openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/apache2/ssl/site_ssl.pem -out /etc/apache2/ssl/site_ssl.pem

Then in your site config put in:

DocumentRoot blah
ServerName blah
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/site_ssl.pem

RewriteEngine on
RewriteCond %{SERVER_PORT} =443
RewriteRule ^(.*) http://%{HTTP_HOST}$1 [L,QSA]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s