Error in getting authorized

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: http://nicksopeneatsdns.southcentralus.cloudapp.azure.com/

I ran this command: sudo certbot --nginx

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter ‘c’ to cancel): nicksopeneatsdns.southcentralus.cloudapp.azure.com
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for nicksopeneatsdns.southcentralus.cloudapp.azure.com
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. nicksopeneatsdns.southcentralus.cloudapp.azure.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://nicksopeneatsdns.southcentralus.cloudapp.azure.com/.well-known/acme-challenge/E58maFZ2u4QcQ3r9CCl8Asf6c8B9q29vh12IypDmoLI [104.215.99.131]: "<!doctype html><html lang=“en”><meta charset=“utf-8”><meta name=“viewport” content=“width=device-width,initial-scale=1,shr”

IMPORTANT NOTES:

My web server is (include version): nginx 1.14.0

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

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.31.0

Hi @NickR

if you want to create a certificate, first step: You need a working configuration.

Add a server block / port 80 with your domain name as server_name.

Thank you for the help. I’m very new to this. I’m not quite sure how to set up a working configuration. Do you know any guides on adding a server block.

Ok, just made added a server block with my domain name as server_name.

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