Skip to content
New issue

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

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

Already on GitHub? # to your account

New discovery protocol over HTTPS #22

Merged
merged 1 commit into from
Sep 21, 2015
Merged

New discovery protocol over HTTPS #22

merged 1 commit into from
Sep 21, 2015

Conversation

calmh
Copy link
Member

@calmh calmh commented Sep 20, 2015

Maybe have a look-see here as well

panic("stop unimplemented")
}
func (s *querysrv) handleGET(w http.ResponseWriter, req *http.Request) {
if req.TLS == nil {
Copy link
Member

Choose a reason for hiding this comment

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

We don't really need this for gets

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, we don't even listen on non-TLS so not really, no.

Copy link
Member

Choose a reason for hiding this comment

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

This talks about wether or not the client provided a cert. I'd like to be able to easily ask people to use curl to debug stuff, without asking them to generate a key pair. I understand that for POST its not an option.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nah, this just verifies that the GET was over TLS at all, no check of the client cert. curl -k works perfectly fine against the discosrv for GET requests.

@AudriusButkevicius
Copy link
Member

Does this work?

@calmh
Copy link
Member Author

calmh commented Sep 21, 2015

Yeah :)

AudriusButkevicius added a commit that referenced this pull request Sep 21, 2015
New discovery protocol over HTTPS
@AudriusButkevicius AudriusButkevicius merged commit 1151eeb into master Sep 21, 2015
@calmh calmh deleted the tls branch March 17, 2016 12:00
@syncthing syncthing locked and limited conversation to collaborators Jan 15, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants