my ports are open internally but not externally.but whenever i run a command
sudo certbot --apache
i am getting bellow error. Is it possible to install lets encrypt on subdomain and any idea about below error.
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for zabbix.xyz.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. zabbix.xyz.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://zabbix.xyz.com/.well-known/acme-challenge/OcpJ1Nf2z8LitDgCIDDHPN70mNsxVchNTU3JtDaBO8U: Timeout during connect (likely firewall problem)
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.
Here's some documentation pages that might help explain why you need port 80 open to the world to get a certificate using the HTTP-01 challenge:
But the short of it is that in order to prove to the world that you own a name, you need a system that responds to that name that's available everywhere in the world. Now, if the intention is that this server is internal-use-only and shouldn't be available to anybody on the outside, then the only way to get a certificate is to use the DNS-01 challenge instead, which involves automating adding a record to your DNS to prove you own the name instead of automating adding a response from the web server. Some DNS servers make this relatively straightforward, others don't and you need to use something like acme-dns to delegate the challenge record to a place where you can automate it.