Problem with installing letsencrypt on subdomain

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:test.frequenz-messung.de

I ran this command: sudo certbot certonly --standalone --preferred-challenges http --http-01-port 80 -d test.frequenz-messung.de -d www.test.frequenz-messung.de

It produced this output:Failed authorization procedure. www.test.frequenz-messung.de (http-01): urn:ietf :params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.test.freque nz-messung.de

  • The following errors were reported by the server:

    Domain: www.test.frequenz-messung.de
    Type: None
    Detail: DNS problem: NXDOMAIN looking up A for

My web server is (include version):

The operating system my web server runs on is (include version): Apache/2.4.18 (Ubuntu)

My hosting provider, if applicable, is:netcup.net

I can login to a root shell on my machine (yes or no, or I don’t know):Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

It’s true. There’s a DNS record for test.frequenz-messung.de., but www.test.frequenz-messung.de. does not exist.

test.frequenz-messung.de. 300   IN      A       193.30.120.186

You need to add DNS record(s) at your DNS service before you can use HTTP-01 validation.

1 Like

But i only have one domain. How can i add another DNS record for www.test.frequenz-messung.de. ??? and what kind of record should i add

You asked Certbot to get a certificate for two names, test.frequenz-messung.de and www.test.frequenz-messung.de.

You should add an A record with the same value as your other one, probably the same way you added it.

Edit: Or, you can get a certificate for only the one, existing name.

Yeah but when add one also i end up with an error

Failed authorization procedure. test.frequenz-messung.de (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://test.frequenz-messung.de/.well-known/acme-challenge/ac_MF_4LWjiodhUrfnW747v3kYVRdYFz9C13D3-ehOk: Timeout during connect (likely firewall problem)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: test.frequenz-messung.de
    Type: connection
    Detail: Fetching
    http://test.frequenz-messung.de/.well-known/acme-challenge/ac_MF_4LWjiodhUrfnW747v3kYVRdYFz9C13D3-ehOk:
    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.

I can’t access http://test.frequenz-messung.de/ either. Can you?

Maybe there’s a firewall blocking all connections, or connections from foreign countries?

I do have firewall but all traffic is allowed on my IP
"INPUT -p tcp --dport 80 -m state --state NEW -s 192.68.16.1/32 -j ACCEPT "
or maybe i need another rule hmmm

That only allows traffic coming from 192.68.16.1. The rest of the Internet is blocked.

2 Likes

Upss sorry figured out whats the issue, thank you so much for your help @mnordhoff

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.