I am completely new to all things web, and am trying to create an ssl certificate for use in experimenting with various applications that require https. I have set up dynamic dns to point to an apache2 server running on my home computer (referenced in the following).
After setting up an ssl key I still cannot reach the site via https (http works completely fine still), it says it times out. Info below:
My domain is:
shaunserver.ddns.net
I ran this command:
./certbot-auto -d shaunserver.ddns.net
It produced this output:
Congratulations! You have successfully enabled https://shaunserver.ddns.net
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=shaunserver.ddns.net
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/shaunserver.ddns.net/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/shaunserver.ddns.net/privkey.pem
Your cert will expire on 2018-11-14. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again with the âcertonlyâ option. To non-interactively renew all
of your certificates, run âcertbot-auto renewâ
however, when I attempt to do as suggested and test my configuration via the provided site, or simply typing into the url âhttps://shaunserver.ddns.netâ it times out, typing the same without the âsâ in âhttpsâ, however, works fine.
My web server is (include version):
Server version: Apache/2.4.18 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 16.04.4 LTS
I can login to a root shell on my machine (yes or no, or I donât know):
yes
Iâm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
Here are dumps (minus the comments) of my 000-default.conf and default-ssl.conf files
000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName shaunserver.ddns.net
ServerAlias shaunserver.ddns.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
defualt-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/shaunserver.ddns.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/shaunserver.ddns.net/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
Thank you so much for your help!