-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
caddyhttp: Placeholder for client cert in DER + base64 format #4241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I think it needs to be changed though, as it doesn't really make sense as-is.
It's not PEM if it's raw bytes base64 encoded; that's DER base64 encoded. PEM is specifically DER base64 encoded then with ASCII armor added and newlines at every 64 chars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah these changes aren't quite what was suggested... try something like this instead.
Someone with an actual need for this will need to verify it works and fulfills the need before this will get merged, otherwise we will have to close this for inactivity. |
Closing due to inactivity. Can reopen if needed. |
Hey @mholt! Not one of the people that originally wanted this, but stumbled upon it half an hour ago and can report that this change does indeed work and allows me to use Caddy in front of the Syncthing Discovery service with
That said, I'd appreciate you reopening and merging this PR. Thanks! |
Interesting, thanks @cschmatzler, for ref, |
c36860f
to
3b49a2d
Compare
I went ahead and rebased the branch, fixing some merge conflicts. @mholt I think this is ready to go 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this has an actual (but niche) use case, I guess we can merge this. Thank you for verifying!
This doesn't work on my machine. This is my Caddyfile:
And the log of caddy:
Is there something wrong? |
The headers look correct. It's not an issue with Caddy, you'll need to figure out why your upstream app doesn't accept it. |
@aoxiangtianji Just change
to
They fixed this but do not update the document, remember to build using the latest commit. |
Fixes #3767