When I give --domain '*.service.example.com', I get
ERROR: Please define a valid alias for your *.service.example.com wildcard-certificate.
which makes sense.
When I give --domain 'service.example.com *.service.example.com', I get
+ Requesting authorization for *.service.example.com...
+ ERROR: An error occurred while sending post-request to https://acme-staging.api.letsencrypt.org/acme/new-authz (Status 400)
Details:
HTTP/1.1 100 Continue
Expires: Sun, 27 May 2018 14:15:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 129
Boulder-Requester: 3059337
Replay-Nonce: Naad93U-smxcpae2dpp8mx4WxnfDTymk_3IgLrny3lY
Expires: Sun, 27 May 2018 14:15:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 27 May 2018 14:15:52 GMT
Connection: close
{
"type": "urn:acme:error:malformed",
"detail": "Error creating new authz :: Wildcard names not supported",
"status": 400
}
Thanks!
Originally created by @nh2 on GitHub (May 27, 2018).
Hi,
I've been using dehydrated's `--domain` CLI flag instead of `domains.txt`, and now want to also use wildcard certificates.
What is the `--domain` CLI flag equivalent of doing
```
service.example.com *.service.example.com
```
as explained on https://github.com/lukas2511/dehydrated/blob/10d4b98e7f1e2c5e0e5b16b0896aa7180e5a88f5/docs/domains_txt.md#wildcards ?
---
I've tried the following:
When I give `--domain '*.service.example.com'`, I get
```
ERROR: Please define a valid alias for your *.service.example.com wildcard-certificate.
```
which makes sense.
When I give `--domain 'service.example.com *.service.example.com'`, I get
```
+ Requesting authorization for *.service.example.com...
+ ERROR: An error occurred while sending post-request to https://acme-staging.api.letsencrypt.org/acme/new-authz (Status 400)
Details:
HTTP/1.1 100 Continue
Expires: Sun, 27 May 2018 14:15:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 129
Boulder-Requester: 3059337
Replay-Nonce: Naad93U-smxcpae2dpp8mx4WxnfDTymk_3IgLrny3lY
Expires: Sun, 27 May 2018 14:15:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 27 May 2018 14:15:52 GMT
Connection: close
{
"type": "urn:acme:error:malformed",
"detail": "Error creating new authz :: Wildcard names not supported",
"status": 400
}
```
Thanks!
Uh now I'm confused. Looks like I get Error creating new authz :: Wildcard names not supported even when using domains.txt instead of --domain flags, with this domains.txt:
service.example.com *.service.example.com
and invocation dehydrated --config config --cron --challenge dns-01 --hook route53.py. What am I missing?
@nh2 commented on GitHub (May 27, 2018):
Uh now I'm confused. Looks like I get `Error creating new authz :: Wildcard names not supported` even when using `domains.txt` instead of `--domain` flags, with this `domains.txt`:
```
service.example.com *.service.example.com
```
and invocation `dehydrated --config config --cron --challenge dns-01 --hook route53.py`. What am I missing?
So --domain 'service.example.com *.service.example.com' seems to work now.
@nh2 commented on GitHub (May 27, 2018):
Ah, never mind, I had a stray
```
CA="https://acme-staging.api.letsencrypt.org/directory"
```
in my config when it should have been the following to use ACMEv2 for wildcard cert support:
```
CA="https://acme-staging-v02.api.letsencrypt.org/directory"
```
So `--domain 'service.example.com *.service.example.com'` seems to work now.
@TyrfingMjolnir commented on GitHub (Jul 6, 2020):
Should I be able to put in /opt/local/etc/dehydrated/domains.txt
domain.tld *.domain.tld
To have a cert for all subdomains? Or does this approach only work for sub-sub-domains?
@TyrfingMjolnir commented on GitHub (Jul 6, 2020):
Should I be able to put in /opt/local/etc/dehydrated/domains.txt
```
domain.tld *.domain.tld
```
To have a cert for all subdomains? Or does this approach only work for sub-sub-domains?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @nh2 on GitHub (May 27, 2018).
Hi,
I've been using dehydrated's
--domainCLI flag instead ofdomains.txt, and now want to also use wildcard certificates.What is the
--domainCLI flag equivalent of doingas explained on https://github.com/lukas2511/dehydrated/blob/10d4b98e7f1e2c5e0e5b16b0896aa7180e5a88f5/docs/domains_txt.md#wildcards ?
I've tried the following:
When I give
--domain '*.service.example.com', I getwhich makes sense.
When I give
--domain 'service.example.com *.service.example.com', I getThanks!
@nh2 commented on GitHub (May 27, 2018):
Uh now I'm confused. Looks like I get
Error creating new authz :: Wildcard names not supportedeven when usingdomains.txtinstead of--domainflags, with thisdomains.txt:and invocation
dehydrated --config config --cron --challenge dns-01 --hook route53.py. What am I missing?@nh2 commented on GitHub (May 27, 2018):
Ah, never mind, I had a stray
in my config when it should have been the following to use ACMEv2 for wildcard cert support:
So
--domain 'service.example.com *.service.example.com'seems to work now.@TyrfingMjolnir commented on GitHub (Jul 6, 2020):
Should I be able to put in /opt/local/etc/dehydrated/domains.txt
To have a cert for all subdomains? Or does this approach only work for sub-sub-domains?