Please fill out the fields below so we can help you better.
My domain is: coderuck.us
I ran this command: wget https://coderuck.us
It produced this output:
> wget https://coderuck.us
> --2017-01-25 18:55:27-- https://coderuck.us/
> Resolving coderuck.us (coderuck.us)... 172.127.48.62
> Connecting to coderuck.us (coderuck.us)|172.127.48.62|:443... connected.
> ERROR: cannot verify coderuck.us's certificate, issued by ‘O=Mini Webservice Ltd,ST=Some-State,C=PL’:
> Self-signed certificate encountered.
> ERROR: certificate common name ‘’ doesn't match requested host name ‘coderuck.us’.
> To connect to coderuck.us insecurely, use `--no-check-certificate'.
My operating system is (include version): Raspian Jesse
My web server is (include version): Nginx
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
I bought a cheap ($0.88) domain from Namecheap to use to play around with LetsEncrypt. My set up is:
- domain: coderuck.us purchased though namecheap
- dns: cloudflare
- raspberry pi 3 running latest raspbian jesse
- Nginx
- dehydrated LE client with cloudflare hook for dns-01 validation
- ports 80 and 443 forwarded from external router
- ddclient setup for dynamic dns ip update
I initially tried to set this up using namecheaps dns but after experimenting and googling around, I abandoned it for cloudflare (maybe this was a mistake, maybe i could've used http-01 validation for generating the certs but there was a lot of negativity from other googlers).
- I setup namcheap to use the cloudflare nameservers
- after many failures, i changed the status on cloudflare to "Paused" in order to just use dns. I thought this might help in tracking down my issues
- I installed the dehydrated client(https://github.com/lukas2511/dehydrated) along with a hook for using cloudflare to respond to dns-01 challenges (GitHub - kappataumu/letsencrypt-cloudflare-hook: Use CloudFlare with dehydrated (formerly letsencrypt.sh) and DNS challenges)
- after setting the environment variables and running "./dehydrated -c -d coderuck.us -d www.coderuck.us -t dns-01 -k 'hooks/cloudflare/hook.py'", certs were generated in "/etc/dehydrated/certs/coderuck.us/"
- setup nginx to use those keys
server {
listen 443;
server_name coderuck.us;
ssl on;
ssl_certificate /etc/dehydrated/certs/coderuck.us/fullchain.pem;
ssl_certificate_key /etc/dehydrated/certs/coderuck.us/privkey.pem;
#Include actual web application configuration here. root /var/www/html;
}
and
server {
listen 80;
server_name coderuck.us;
location / {
return 301 https://$server_name$request_uri;
}
}
nginx came up clean and I thought I was in business. When i went to the site from my internal network, everything worked as expected. the "secure" lock was displayed and I can view the certificate and show the it is from Lets Encrypt. When I hit it from outside my network, I get the "Your connection is not private" and a "NET::ERR_CERT_COMMON_NAME_INVALID" error.
I feel like I maybe missing something simple but can't seem to figure it out. Can anyone help?
Thanks,
Charlie