acme-client-portable icon indicating copy to clipboard operation
acme-client-portable copied to clipboard

The client should probably follow permanent redirects while downloading the full chain from the issuer

Open tobez opened this issue 7 years ago • 7 comments

It looks like letsencrypt has changed something, so now acme-client (0.1.16, FreeBSD) croaks with

acme-client: http://cert.int-x3.letsencrypt.org/: bad HTTP: 301

If one tries to access the URL in question by hand, the redirect is towards

https://letsencrypt.org/cert.int-x3/

I am surprized that acme-client does not follow redirects already, was it coded like that for security reasons?

tobez avatar Feb 03 '18 10:02 tobez

Issue still going on

darkguy2008 avatar Mar 11 '18 07:03 darkguy2008

same here....

zibebe avatar Mar 11 '18 10:03 zibebe

acme-client takes its instructions from the X509 certificate, CA issuer (1.3.6.1.5.5.7.48.2), which directs to http://cert.int-x3.letsencrypt.org/. However, http://cert.int-x3.letsencrypt.org/ redirects to https://cert.int-x3.letsencrypt.org/ now:

$ curl --head "http://cert.int-x3.letsencrypt.org/"
HTTP/1.1 301 Moved Permanently
Server: AkamaiGHost
Content-Length: 0
Location: https://cert.int-x3.letsencrypt.org/
Cache-Control: max-age=0
Expires: Sun, 11 Mar 2018 11:55:48 GMT
Date: Sun, 11 Mar 2018 11:55:48 GMT
Connection: keep-alive

dofullchain in netproc.c would need updating to follow the redirect, if I'm not mistaken.

arclabch avatar Mar 11 '18 11:03 arclabch

Quick hack to solve this problem:

phicoh avatar Mar 11 '18 14:03 phicoh

netproc.c.log

phicoh avatar Mar 11 '18 14:03 phicoh

@phicoh thank you!

arclabch avatar Mar 11 '18 14:03 arclabch

For those using acme-client on FreeBSD, and until a more permanent fix is made, use patch-netproc.c.log and place its content in the new file /usr/ports/security/acme-client/files/patch-netproc.c to make it work from the ports. Then do the usual make and make install.

arclabch avatar Mar 11 '18 14:03 arclabch