NGINX don't use my lets encrypt certificate

My domain is:

My web server is (include version): NGINX

The operating system my web server runs on is (include version): RHEL7

My hosting provider, if applicable, is: -

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


server {
if ($host = {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80;
listen [::]:80;
return 301 https://$server_name$request_uri;

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/; # managed by Certbot
ssl_client_certificate /etc/letsencrypt/live/;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 5m;
ssl_verify_client on;
ssl_verify_depth 2;

include snippets/ssl-params.conf;

root /srv/www/;
index index.php;
location / {
try_files $uri uri/ /index.html =404; autoindex on; } location ~ /.well-known { allow all; } location ~ \.php {
include /etc/nginx/fastcgi_params;


    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;



Hi @schettnico

there is a certificate. But it looks wrong:

	16.01.2038,,,,, fritz.nas, 
www.fritz.nas - 7 entries

So it looks that your fritz box terminates the ssl instead of a port forwarding.

Then follows a http status 400 - bad request.

So check your router settings.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.