Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

629
Views
Django y Certbot: respuesta no autorizada no válida (HTTPS)

Estoy intentando configurar Certbot (Letsencrypt) con Nginx.

me sale este error:

 - The following errors were reported by the server: Domain: koomancomputing.com Type: unauthorized Detail: Invalid response from http://koomancomputing.com/.well-known/acme-challenge/xvDuo8MqaKvUhdDMjE3FFbnP1fqbp9R66ah5_uLdaZk [2600:3c03::f03c:92ff:fefb:794b]: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>" Domain: www.koomancomputing.com Type: unauthorized Detail: Invalid response from http://www.koomancomputing.com/.well-known/acme-challenge/T8GQaufb9qhKIRAva-_3IPfdu6qsDeN5wQPafS0mKNA [2600:3c03::f03c:92ff:fefb:794b]: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>" To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal.

en /etc/nginx/sitios-disponibles/koomancomputing :

 server { listen 80; server_name koomancomputing.com www.koomancomputing.com; location = /favicon.ico { access_log off; log_not_found off; } location /staticfiles/ { root /home/kwaku/koomancomputing; } location /media/ { root /home/kwaku/koomancomputing; } location / { include proxy_params; proxy_pass http://unix:/run/gunicorn.sock; } }

mis registros DNS A/AAAA:

ingrese la descripción de la imagen aquí

No sabía qué hacer, así que busqué y encontré la aplicación django-letsencrypt, pero no sé cómo usarla: ingrese la descripción de la imagen aquí

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Su servidor Nginx responde con un error 404 porque no define una ruta a /.well-known que necesita certbot para verificar los desafíos. Debe modificar el archivo de configuración de Nginx para indicarle cómo responder a los desafíos de certbot.

Certbot puede actualizar el archivo de configuración de Nginx por usted.

  • Primero, asegúrese de que su archivo de configuración esté habilitado. Ejecute sudo service nginx reload y verifique la presencia de un archivo llamado /etc/nginx/sites-enabled/koomancomputing .

  • Luego, ejecute certbot --nginx -d koomancomputing.com -d www.koomancomputing.com

El indicador --nginx le dice a certbot que busque un archivo de configuración de Nginx con un nombre de servidor que coincida y actualice ese archivo con información de SSL.

over 4 years ago · Santiago Trujillo Report

0

Su dominio tiene un registro AAAA adecuado configurado en su servidor a través de IPv6, y certbot lo eligió para validar su servidor.

Sin embargo, su bloque de servidor configurado en nginx solo escucha el puerto 80 en IPv4 para su dominio. Cuando certbot solicita a Let's Encrypt que acceda a su desafío y emita un certificado, nginx no está configurado para responder correctamente con el desafío en IPv6. A menudo, en este caso, devuelve otras cosas (como un 404 en su caso o un sitio predeterminado).

Puede resolver esto modificando las dos primeras líneas para escuchar también en todas las direcciones IPv6 de su servidor:

 server { listen 80; listen [::]:80; # other configuration }

Después de editar, reinicie nginx y ejecute certbot nuevamente.

over 4 years ago · Santiago Trujillo Report

0

server { listen 80; listen [::]:80; # other configuration }

Funciona tanto para IPV4 como para IPV6 después de agregar este reinicio nginx.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!