Certbot certificate failed to generate domain amol.focalworks.in,type=unauthorid invalid response

server {
listen 80;
server_name amol.focalworks.in;
root /usr/share/nginx/html;

    if ($scheme != "https") {
    return 301 https://$host$request_uri/.well-known/acme-challenge/test;
    }

# Load configuration files for the default server block.
    # include /etc/nginx/default.d/*.conf;


    location /.well-known/acme-challenge/{
    allow all;
    default_type  plain/text;
    }

error_page 404 /404.html;
        location = /40x.html {
    }

error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }
}

Settings for a TLS enabled server.

server {
listen       443 ssl http2 default_server;
    root         /usr/share/nginx/html;
    server_name  amol.focalworks.in;


    ssl_certificate "/amol.focalworks.in.crt";
    ssl_certificate_key "/amol.focalworks.in.key";
    ssl_session_cache shared:SSL:1m;
    ssl_session_timeout  10m;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;

    # Load configuration files for the default server block.

    location  /{
    }

error_page 404 /404.html;
        location = /40x.html {
    }

error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }
}

}

Hi @amolv

there ( https://check-your-website.server-daten.de/?q=amol.focalworks.in#ct-logs ) is no certificate visible.

And you use a self signed certificate.

E=ronnie@focalworks.in, CN=ls.focalworks.in, 
OU=web dev, O=Focalworks, L=Navi Mumbai, S=Maharashtra, C=IN
	21.09.2018
	21.09.2019
expires in 86 days	

Your main configuration looks ok.

Domainname Http-Status redirect Sec. G
http://amol.focalworks.in/
175.100.176.58 200 0.267 H
https://amol.focalworks.in/
175.100.176.58 200 1.777 N
Certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
http://amol.focalworks.in/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
175.100.176.58 404 0.264 A
Not Found
Visible Content: Not Found The requested URL /.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de was not found on this server. Apache/2.4.18 (Ubuntu) Server at amol.focalworks.in Port 80

So start with the basics:

Then select a client.

2 Likes

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