Letsencrypt problems

I receive a couple of errors trying to install letsencrypt. How to solve?

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find executable apache2ctl in PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

How would you like to authenticate with the ACME CA?
1: Place files in webroot directory (webroot)
2: Spin up a temporary webserver (standalone)
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for xxx1.duckdns.org
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. xxx1.duckdns.org (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: Failed to connect to 79.1xxxxxxxx:443 for tls-sni-01 challenge: Server only speaks HTTP, not TLS

 - The following errors were reported by the server:

   Domain: xxx.duckdns.org
   Type:   malformed
   Detail: Failed to connect to 79.xx.xxx.xxx:443 for tls-sni-01
   challenge: Server only speaks HTTP, not TLS

   To fix these errors, please make sure that you did not provide any
   invalid information to the client, and try running Certbot again.
pi@hassbian:~/letsencrypt $

The error tells you the problem - check that you’ve forwarded port 443 on your router to port 443 on the system running certbot, and that nothing else is listening on that port.

1 Like

Yes that was it