2017-09-12 7 views
0

Comment créer un certificat auto-signé Let's Encrypt pour un sous-domaine?Comment créer un certificat auto-signé Let's Encrypt pour un sous-domaine uniquement? (erreur dans la publication)

Pour être précis:

  • sub.domain.com (a besoin d'un certificat et des points à une adresse ip)
  • domain.com (ne pointe pas à quoi que ce soit)

En suivant the following instructions, je reçois le erreurs suivantes:

>>> sudo -H ./letsencrypt-auto certonly --standalone -d sub.domain.com --register-unsafely-without-email 
Saving debug log to /var/log/letsencrypt/letsencrypt.log 
Plugins selected: Authenticator standalone, Installer None 
Obtaining a new certificate 
Performing the following challenges: 
tls-sni-01 challenge for sub.domain.com 
Waiting for verification... 
Cleaning up challenges 
Failed authorization procedure. sub.domain.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Timeout 

IMPORTANT NOTES: 
- The following errors were reported by the server: 

    Domain: sub.domain.com 
    Type: connection 
    Detail: Timeout 

    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. Additionally, please check that 
    your computer has a publicly routable IP address and that no 
    firewalls are preventing the server from communicating with the 
    client. If you're using the webroot plugin, you should also verify 
    that you are serving files from the webroot path you provided. 
+0

Exécutez-vous les commandes sur le serveur que vous souhaitez configurer? – jrtapsell

+0

@jrtapsell Non, c'était mon problème - si vous postez une réponse je l'accepterai – GNettlefold

Répondre

0

Vous devez exécuter les commandes sur le serveur car la commande vérifie que vous contrôlez le domaine. Si ce n'est pas le cas, il ne peut pas vérifier correctement.

1

Vous pouvez créer un certificat Let's Encrypt pour le sous-domaine sans pointer domian sur la racine. Connectez-vous à la gestion DNS et créez un enregistrement NOM pour le sous-domaine.

  • Pour UN NOM, vous aurez besoin de l'adresse IP
    • Vérifiez que sub.domian.com est accessible par internet.
    • exécutez le script pour sub.domian.com.

https://zerossl.com/free-ssl/#crt peut également être utilisé pour générer des certificats et la clé mais il aurait besoin d'une étape manuelle pour créer .bien connu et le dossier Aceme-défi doivent être créés dans sub.domian.com/DocumentRoot