mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-02-26 04:14:50 +01:00
Walking chain fails - Problem connecting to server #293
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ccitro on GitHub (Mar 9, 2018).
Dehydrated is successfully creating the certificate for my domain, but is failing when attempting to create the fullchain file. This happens with both the staging and production environment of Letsencrypt. I'm using the script cloned from master (
6e802ddc19).Here is the relevant output from dehydrated (configured to use the staging CA in this case)
I used openssl to verify the "CA Issuers" for certs coming from letsencrypt.
For the staging CA:
CA Issuers - URI:http://cert.stg-int-x1.letsencrypt.org/For the production CA:
CA Issuers - URI:http://cert.int-x3.letsencrypt.org/The curl command that fails is (staging CA, in this case):
curl -4 -A "dehydr4ted/0.6.0 curl/7.58.0" -L -s -w "%{http_code}" -o "/tmp/dehydrated-HbaofE" -D "/tmp/dehydrated-hJegeK" "http://cert.int-x1.letsencrypt.org/"If the command is run with the -k flag, the letsencrypt server is responding with 403. I'm not sure if this is an issue with how dehydrated is trying to walk the chain, or with how letsencrypt is issuing / serving the certs.
@cpu commented on GitHub (Mar 9, 2018):
@ccitro This is caused by an ongoing website incident: https://letsencrypt.status.io/pages/incident/55957a99e800baa4470002da/5aa2c4df1e024002287ebe57 Apologies.
@lukas2511 More generally, for ACMEv1 it would be preferable if Dehydrated fetched the issuer using the "up"
Linkheader that's provided in the response fromnew-certinstead of pulling it out of the Certificate's AIA field. This is the more canonical ACME way of finding the issuer, and in this particular case would result in a URL that isn't affected by the website outage. For ACMEv2 its a non-issue, the full chain is returned with the certificate.@jasonbouffard commented on GitHub (Mar 9, 2018):
@cpu is there a work around we can do to assemble the cert chain manually since we already have the certs in hand?
@cpu commented on GitHub (Mar 9, 2018):
@jasonbouffard If you want to assemble a chain by hand the Let's Encrypt Authority X3 certificate that is the issuer for end-entity certificates at the time of writing (09/03/2018) is:
@ghost commented on GitHub (Mar 11, 2018):
As a workaround you could add the curl parameter -L in the dehydrated script. Seems like curl is not following a redirect http to https
https://github.com/lukas2511/dehydrated/blob/v0.5.0/dehydrated#L427
@txr13 commented on GitHub (Mar 11, 2018):
@bobcanthelpyou This is already fixed in master (see commit
7a0e71c).@lukas2511 commented on GitHub (Mar 11, 2018):
This issue is kinda resolved and/or not really dehydrated specific. I opened #498 for a better approach of dealing with issues like this.
@cpu thanks, i created #497 and will probably implement this behaviour for the 0.6.1 release