Hi, we’ve been running a server with multiple SSL-enabled sites on for a while, but have recently decided to switch over to Let’s Encrypt. I’ve followed the instructions from the server providers to get this working, but since installing the certbot software, all access to https:// links across the server fails, with a consistent error in the nginx log stating: no “ssl_certificate” is defined in server listening on SSL port while SSL handshaking.
Initally I installed certbot and hadn’t updated any of the certificates to Let’s Encrypt and we instantly noticed the failure, and having tried to user certbot to generate a Let’s Encrypt cert (which appears to have worked - the cert is on the server and is referenced in the domain conf file), found the same outcome with this.
It produced this output: “no “ssl_certificate” is defined in server listening on SSL port while SSL handshaking” (both when accessing newly installed Let’s Encrypt certs and pre-existing manually installed certs)
My web server is (include version): Linux
The operating system my web server runs on is (include version): CentOS7
My hosting provider, if applicable, is: Digital Ocean
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
ah, thanks - but no luck I’m afraid, have updated to the following. Now going to the non-https just offers a 404 error, and the https is showing the same error
Fantastic! Thanks a million, that’s worked straight off. I’d tried adding default_server to the 443 line, but not when it was in a separate block of code. C’est la vie - thanks again!