2017-06-30 1 views
10

Le message d'erreur complet que je reçois est:renouvellement LetEncrypt échoue: N'a pas pu se lier à IPv4 ou IPv6 .. Skipping

Attempting to renew cert from /etc/letsencrypt/renewal/somedomain.com.conf produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping. 

Ceci est en cours d'exécution sur une AWS ubuntu 14.04 exemple. Tous les ports sont ouverts sortants et 443 est ouvert entrants.

Vous avez des idées?

+0

Dans mon cas, le même problème, mais j'ai trouvé mon domaine incorrectement mappé avec l'adresse IP. Comme j'ai corrigé l'adresse IP avec une entrée d'enregistrement, tout fonctionne très bien pour moi. –

Répondre

2

Ceci est arrivé parce que vous avez utilisé --standalone. Le but de cette option est de lancer un serveur web temporaire car vous n'en avez pas un en cours d'exécution.

La prochaine fois, utilisez la méthode --webroot et vous pourrez utiliser votre serveur nginx déjà en cours d'exécution.

+1

copier des solutions collées. de: https://community.letsencrypt.org/t/trying-to-renew-cert-on-nginx-but-getting-problem-binding-to-port-443-could-not-bind-to-ipv4- ou-ipv6/36289/3 – MaXi32

+0

@ MaXi32 hehe je pensais la même chose. :) – ArchNoob

8

vous exécutez probablement le script avec (preconfigurated) --standalone lorsque votre serveur est déjà en cours d'exécution sur le port 443.

Vous pouvez arrêter le serveur avant de renouveler et de les commencer après.

homme

dit:

--apache   Use the Apache plugin for authentication & installation 
--standalone  Run a standalone webserver for authentication 
--nginx   Use the Nginx plugin for authentication & installation 
--webroot   Place files in a server's webroot folder for authentication 
--manual   Obtain certificates interactively, or using shell script hooks 

Si je cours avec renouveler --apache Je ne peux pas obtenir aucune erreur.

+0

merci ... utilisé './certbot-auto renouveler --apache' et a travaillé comme un charme – gthuo

2

Comme insinué dans les autres réponses, vous devez passer l'option pour votre serveur Web en cours d'exécution, par exemple:

Sans serveur web param:

sudo certbot renew 

Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:tls-sni-01 challenge for example.com
Cleaning up challenges Attempting to renew cert (example.com) from /etc/letsencrypt/renewal/example.com.conf produced an unexpected error:
Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.

Puis, encore une fois avec le serveur Web param (succès):

sudo certbot renew --nginx 

Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges: tls-sni-01 challenge for example.com
Waiting for verification...
Cleaning up challenges

new certificate deployed with reload of nginx server; fullchain is /etc/letsencrypt/live/example.com/fullchain.pem

Congratulations, all renewals succeeded. The following certs have been renewed: /etc/letsencrypt/live/example.com/fullchain.pem (success)

4

Vous avez juste besoin d'arrêter tous les serveurs en cours d'exécution comme Apache, nginx ou OpenShift avant de faire cela.

+0

A travaillé magnifiquement. Je vous remercie! 'sudo service apache2 stop' puis' sudo certbot certonly --standalone -d www.site.com' – Pegues