Skip to content

Letsencrypt doesn't know what domain to verify #145

@tschoffelen

Description

@tschoffelen

Or rather, Dokku seems to be providing challenges for both domains in the wrong place. In the example below, we have a working, previously letsencrypt-activated domain donald.internal.includable.com, and a new one that we're trying to secure, namely camo.lowcdn.com, but it seems that Dokku is offering the challenge for donald on the camo domain, causing Letsencrypt to fail.

Any idea why?

=====> Let's Encrypt camo
-----> Updating letsencrypt docker image...
latest: Pulling from dokkupaas/letsencrypt-simp_le
Digest: sha256:95681f7cd659f23f451738121df9efe42ffc919e93a969781c40e936258fea72
Status: Image is up to date for dokkupaas/letsencrypt-simp_le:latest
       done updating
-----> Enabling ACME proxy for camo...
-----> Getting letsencrypt certificate for camo...
        - Domain 'camo.lowcdn.com'
darkhttpd/1.12, copyright (c) 2003-2016 Emil Mikulic.
listening on: http://0.0.0.0:80/
2018-03-06 16:10:48,877:INFO:__main__:1211: Generating new account key
2018-03-06 16:10:59,414:ERROR:urllib3.connection:360: Certificate did not match expected hostname: camo.lowcdn.com. Certificate: {'subjectAltName': [('DNS', 'donald.internal.includable.com')], 'subject': ((('commonName', u'donald.internal.includable.com'),),)}
2018-03-06 16:10:59,415:ERROR:acme.challenges:324: Unable to reach http://camo.lowcdn.com/.well-known/acme-challenge/uqDc2dLCm-y4oNrXkjJU8LA61-FCKSk_YsqgLQuyywE: HTTPSConnectionPool(host='camo.lowcdn.com', port=443): Max retries exceeded with url: /.well-known/acme-challenge/uqDc2dLCm-y4oNrXkjJU8LA61-FCKSk_YsqgLQuyywE (Caused by SSLError(CertificateError("hostname 'camo.lowcdn.com' doesn't match 'donald.internal.includable.com'",),))
2018-03-06 16:10:59,415:WARNING:__main__:1303: camo.lowcdn.com was not successfully self-verified. CA is likely to fail as well!
2018-03-06 16:11:01,194:INFO:__main__:1313: Generating new certificate private key
2018-03-06 16:11:03,932:ERROR:__main__:1271: CA marked some of the authorizations as invalid, which likely means it could not access http://example.com/.well-known/acme-challenge/X. Did you set correct path in -d example.com:path or --default_root? Is there a warning log entry about unsuccessful self-verification? Are all your domains accessible from the internet? Failing authorizations: https://acme-v01.api.letsencrypt.org/acme/authz/-m9zETYGuFZnvRyKjOvUXxBZRUwlcFxQs_Lvpsuoo-I
Challenge validation has failed, see error log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions