- Install openssl
# sudo apt-get install openssl
- Create a serect key (e.g. server.key)
# sudo openssl genrsa -des3 -out server.key 1024
- Create a public key (e.g. server.csr)
# sudo openssl req -new -key server.key -out server.csr
- Create a signed certificate(e.g. server.crt / Expiration is ten (10) years)
# sudo openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
- Copy the keys to an appropriate directory (Note a permission to copy destination)
# cp server.crt /etc/ssl/certs/; cp server.key /etc/ssl/private/
- Edit /etc/apache2/sites-available/default-ssl
# sudo vi /etc/apache2/sites-available/default-ssl
# Comment out the following two lines:
# SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
# SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
# Add the following two lines:
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key
- Enable mod_ssl (Apache2 SSL module)
# sudo a2enmod ssl
# sudo a2ensite default-ssl
- Restart Apache2 (Answer the secret key's password)
# sudo /etc/init.d/apache2 force-reload && sudo /etc/init.d/apache2 restart
-
(Optional) Aways enable SSL
# sudo a2enmod rewrite
# sudo vi /etc/apache2/sites-available/default
# Insert these lines at the bottom part in between<VirtualHost *:80>...</VirtualHost>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
-
(Optional) Add +ExecCGI
# sudo vi /etc/apache2/sites-available/default-ssl
トラックバック URL:
http://perltips.twinkle.cc/trackback/345
- crate and barrel
- affordable seo services package
- furniture sets
- good treadmills
- epic treadmills
- komodo beach
- quicken online
- microsoft accounting software
- children educational software
- education reference
- operating systems
- photo video design
- security solutions
- software downloads
- quicken for mac
- top movies to watch
- telkom flexi premi
- flexi premi
- world news
- Game of thrones reviews
- Real estate beach houses
- harry winston engagement rings
- mobil termewah mercedes-benz Indonesia
- online jewelry sale
- franchise
- Consultant franchise
- Franchise development consultant
- Sequence franchise development consultant
- franchise development
- franchise consultants
- franchise consulting
- waralaba
- konsultan waralaba
- pengembangan waralaba
- konsultan franchise
- jin
- khodam pendamping
- keilmuan
- paranormal
- dukun
- mistik
- pembukaan mata ketiga
- supranatural
- meraga sukma
- kids line bedding
- water barrels
- bathroom mats
- stainless steel countertops
** newport beach houses california resort town komodo island is the new 7 wonders of the world * komodo island is the new 7 wonders of the world komodo islands is the new 7 wonders of the world now komodo island is the new 7 wonders world komodo islands is the new 7 wonders of the world komodo island new worlds