Impossible to use sub sub domains? #63

Open
opened 2020-09-23 13:56:46 +00:00 by Ghost · 1 comment

I am trying to register a sub sub domain, but it doesn't seem to be possible, is it?

Here is my greenlock.d/config.js

{
  "sites": [
    {
      "subject": "preprod.mydomain.fr",
      "altnames": [
        "preprod.mydomain.fr",
        "phpmyadmin.preprod.mydomain.fr"
      ],
      "renewAt": 1601654620965
    }
  ],
  "defaults": {
    "store": {
      "module": "greenlock-store-fs"
    },
    "challenges": {
      "http-01": {
        "module": "acme-http-01-standalone"
      }
    },
    "renewOffset": "-45d",
    "renewStagger": "3d",
    "accountKeyType": "EC-P256",
    "serverKeyType": "RSA-2048",
    "subscriberEmail": "xxx@gmail.com"
  }

But when I try to connect, I get an error:

Error: SSL_ERROR_BAD_CERT_DOMAIN
Cause: The certificate is not valid for phpmyadmin.preprod.mydomain.fr but only preprod.mydomain.fr

Here is the log of my server:

1|router   | Listening on 0.0.0.0:80 for ACME challenges, and redirecting to HTTPS
1|router   | Listening on 0.0.0.0:443 for secure traffic
1|router   | Ready to Serve:
1|router   | 	 preprod.mydomain.fr phpmyadmin.preprod.mydomain.fr
1|router   | ACME Directory URL: https://acme-v02.api.letsencrypt.org/directory

Am I missing something or is just impossible?

I am trying to register a sub sub domain, but it doesn't seem to be possible, is it? Here is my `greenlock.d/config.js` ```json { "sites": [ { "subject": "preprod.mydomain.fr", "altnames": [ "preprod.mydomain.fr", "phpmyadmin.preprod.mydomain.fr" ], "renewAt": 1601654620965 } ], "defaults": { "store": { "module": "greenlock-store-fs" }, "challenges": { "http-01": { "module": "acme-http-01-standalone" } }, "renewOffset": "-45d", "renewStagger": "3d", "accountKeyType": "EC-P256", "serverKeyType": "RSA-2048", "subscriberEmail": "xxx@gmail.com" } ``` But when I try to connect, I get an error: Error: SSL_ERROR_BAD_CERT_DOMAIN Cause: The certificate is not valid for phpmyadmin.preprod.mydomain.fr but only preprod.mydomain.fr Here is the log of my server: ``` 1|router | Listening on 0.0.0.0:80 for ACME challenges, and redirecting to HTTPS 1|router | Listening on 0.0.0.0:443 for secure traffic 1|router | Ready to Serve: 1|router | preprod.mydomain.fr phpmyadmin.preprod.mydomain.fr 1|router | ACME Directory URL: https://acme-v02.api.letsencrypt.org/directory ``` Am I missing something or is just impossible?
Owner

Baclup the cutrent cets, delete them, and try again.

This may be a caching bug.

Baclup the cutrent cets, delete them, and try again. This may be a caching bug.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-express.js#63
No description provided.