Skip to content

Conversation

@ffissore
Copy link
Contributor

Adds parameter "-k" to every way of calling curl, hence allowing
calling https URLs without checking for the validity of SSL
certificates.
While this makes it a little insecure, nothing else can be done
while keeping the HTTPClient API simple: openwrt does not have a
SSL certificates bundle
Advanced users concerned about security should call "curl" on
their own using Process, supplying parameters such as "--cacert"
Fixes #1860
@cmaglie

calling https URLs without checking for the validity of SSL
certificates.
While this makes it a little insecure, nothing else can be done
while keeping the HTTPClient API simple: openwrt does not have a
SSL certificates bundle
Advanced users concerned about security should call "curl" on
their own using Process, supplying parameters such as "--cacert"
Fixes #1860
@matthijskooijman
Copy link
Collaborator

I'm wondering if this should be opt-in by calling a "noCheckSSL()" function or something like that? I'm afraid that passing this implicitely will give users a false sense of security. "Hey, I'm secure, since I'm using HTTPS and it worked right away!"

If insecure, "-k" parameter is added to curl and SSL certificates
are not checked
@ffissore
Copy link
Contributor Author

Agree. I've added noCheckSSL and checkSSL methods

@matthijskooijman
Copy link
Collaborator

Looks good!

cmaglie added a commit that referenced this pull request May 21, 2014
@cmaglie cmaglie merged commit 4d5d0f6 into ide-1.5.x May 21, 2014
@cmaglie cmaglie deleted the ide-1.5.x-httpclient-allow-https branch May 21, 2014 09:24
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.

3 participants