Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update acme_tiny.py #230

Closed
wants to merge 1 commit into from
Closed

Conversation

ssuchanowski
Copy link

fix an issue when file cannot be downloaded after ssl expire

fixes #229

fix an issue when file cannot be downloaded after ssl expire
@olmari
Copy link

olmari commented Jul 29, 2019

Generally "best practises" suggest that LE .well-known should be requested through http/80 anyway, or at least it has been that way... Exactly because one should assume that already having working ssl is not a certainty, and LE does not need https for authentication phase.

Now this does not say one can't use https for LE .well-known, but it will generally indeed fail when there isn't ssl already working.

@cpu
Copy link

cpu commented Jul 29, 2019

Now this does not say one can't use https for LE .well-known, but it will generally indeed fail when there isn't ssl already working.

@olmari I'm afraid that's not true. Let's Encrypt will ignore certificate validation errors when processing an RFC 8555 HTTP-01 challenge that was redirected by the origin server to an HTTPS domain with an invalid certificate.

@olmari
Copy link

olmari commented Jul 29, 2019

Oh well, so it seems, my "data" was old.. I do see the point on this, so while I'm no developer I'd greenlight this kind of commit for exactly LE/Acme-tiny context :)

Copy link
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but this PR cannot be merged. What you are doing is disabling certification for all requests acme-tiny is doing, in particular also for all communication with the ACME CA.

You need to do this only when checking whether the challenge file is around. There have been other PRs trying to do that before (#190, #221); they were not merged because you can simply disable this check with the --disable-check option.

(Also, you haven't been the first to try to disable all certificate validations, see #215 for example :) )

@ssuchanowski
Copy link
Author

ok - then it should be added to the docs somewhere - it would help a lot, I have one of my apps doing ssl pinning and needed to act fast.

Closing.

@felixfontein
Copy link
Contributor

It's already documented if you run acme-tiny -h. If you want it in the README, feel free to create a PR for that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

download does not work
4 participants