lms@lms:/etc/nginx/sites-available$ sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: lms.promecin.com
2: phish.promecin.com
3: phish-admin.promecin.com
4: portainer.promecin.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Requesting a certificate for lms.promecin.com and 3 more domains
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: lms.promecin.com
Type: connection
Detail: 104.236.9.157: Fetching http://lms.promecin.com/.well-known/acme-challenge/Bf37bEbgcjvCSqdGtAKdCftqha0iG5c5gxaZ95WIoE4: Error getting validation data
Domain: phish-admin.promecin.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for phish-admin.promecin.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for phish-admin.promecin.com - check that a DNS record exists for this domain
Domain: phish.promecin.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for phish.promecin.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for phish.promecin.com - check that a DNS record exists for this domain
Domain: portainer.promecin.com
Type: unauthorized
Detail: 52.22.52.79: Invalid response from https://portainer.promecin.com/.well-known/acme-challenge/tOSajpGqsnWnc0u-4MgvyO8hZa6gmi_9IbE4L8bEwcE: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
that the error a got in my bash , in additional i'm no have this route too /etc/letsencrypt/live/ in my certbot version is 2.9.0
and here is the config od each of the domain i did setup
server {
listen80;
server_name lms.promecin.com;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
proxy_connect_timeout 300s;
}
}
server {
listen 443 ssl;
server_name phish.promecin.com;
ssl_certificate /etc/letsencrypt/live/promecin.com;
ssl_certificate_key /etc/letsencrypt/live/promecin.com;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name phish.promecin.com;
return 301 https://$host$request_uri;
}
phish-admin.promecin
server {
listen 443 ssl;
server_name phish-admin.promecin.com;
ssl_certificate /etc/letsencrypt/live/://promecin.com;
ssl_certificate_key /etc/letsencrypt/live/://promecin.com;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://127.0.0.1:3334;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name phish-admin.promecin.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl; #
server_name portainer.promecin.com;
ssl_certificate /etc/letsencrypt/live/://promecin.com;
ssl_certificate_key /etc/letsencrypt/live/://promecin.com;
location / {
proxy_pass http://127.0.0.1:9000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
server {
listen 80;
server_name portainer.promecin.com;
return 301 https://$host$request_uri;
}
and that's the error could somebody helpme i'm new in this