How To Create a SSL Certificate on Apache for Ubuntu
How To Create a SSL Certificate on Apache for Ubuntu
for Ubuntu
Configure hosts
sudo gedit hosts
127.0.1.1 localhost
127.0.0.1 autochip.ddns.net
192.168.1.17 autochip.ddns.net
127.0.1.1 autochip-H81M-S1
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
After you have enabled SSL, you'll have to restart the web server for
the change to be recognized:
sudo service apache2 restart
Create a Self-Signed SSL Certificate
Now that we have a location to place our key and certificate, we can
create them both in one step by typing:
<VirtualHost *:80>
ServerName autochip.ddns.net
ServerAdmin autochip.ddns.net
TransferLog /var/log/apache2/transfer.erp.your-domain.at.log
</VirtualHost>
<VirtualHost *:443>
ServerName autochip.ddns.net
ServerAdmin [email protected]
SSLProxyEngine on
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
SetEnv proxy-nokeepalive 1
ProxyPass / http://autochip.ddns.net:8069/
ProxyPassReverse / http://autochip.ddns.net:8069/
ProxyErrorOverride off
TransferLog /var/log/apache2/transfer.erp.autochip.ddns.net.log
SetEnv proxy-nokeepalive 1
</VirtualHost>
We then need to restart Apache to load our new virtual host file:
sudo service apache2 restart
https://server_domain_name_or_IP
ref:https://www.digitalocean.com/community/tutorials/how-to-create-
a-ssl-certificate-on-apache-for-ubuntu-14-04