apache - OpenSSL implementation... what am I missing? -
i have been working hard on installing openssl certificate web-app can show beautiful “https” in url, however, can’t , it’s driving me insane!!
i have linux vps ubuntu 14.04 , apache 2.4.7.
i have done following things:
1.- enable ssl module:
sudo a2enmod ssl
2.- restart apache:
sudo service apache2 restart
3.- create ssl directory inside de apache2 directory:
sudo mkdir /etc/apache2/ssl
4.- execute following command create self-signed ssl certificate :
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ` /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt`
5.- fill in questions:
country name (2 letter code) [au]:us state or province name (full name) [some-state]:new york locality name (eg, city) []:new york city organization name (eg, company) [internet widgits pty ltd]:your company organizational unit name (eg, section) []:department of kittens common name (e.g. server fqdn or name) []:your_domain.com email address []:your_email@domain.com
6.- configure apache utilize ssl:
sudo nano /etc/apache2/sites-available/default-ssl.conf
7.- modify following data:
serveradmin admin@example.com servername my_domain.com serveralias www.my_domain.com documentroot /var/www/html sslcertificatefile /etc/apache2/ssl/apache.crt sslcertificatekeyfile /etc/apache2/ssl/apache.key
8.- enable “default-ssl.conf” file:
sudo a2ensite default-ssl.conf
9.- restart apache again:
sudo service apache2 restart
according have read should all… missing??
thank's in advanced.
Comments
Post a Comment