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

HTTPS Rest API #42

Open
sergione76 opened this issue Nov 25, 2015 · 6 comments
Open

HTTPS Rest API #42

sergione76 opened this issue Nov 25, 2015 · 6 comments

Comments

@sergione76
Copy link

Hi,
I'm trying to use https rest api with different servers: with a lot of server doesn't works infact
rest.getResponse returns 0
For example connecting using https with github.com it doesn't work...some ideas or help?
Thank you
Sergio

@Namphibian
Copy link

Hi Sergio.

There is known limitations in the SSL handling routines.

As far as I know it only works with certificates up to 1024 bits in
strength.

Kind Regards
Neil Franken
On 25 Nov 2015 9:39 PM, "Sergio Sagliocco" notifications@github.com wrote:

Hi,
I'm trying to use https rest api with different servers: with a lot of
server doesn't works infact
rest.getResponse returns 0
For example connecting using https with github.com it doesn't work...some
ideas or help?
Thank you
Sergio


Reply to this email directly or view it on GitHub
#42.

@sergione76
Copy link
Author

Hi Neil,
yes but...sometimes it works on servers with certificate that have 2048 key length! e.g https://yourapihere-com-r2pgihowjx7x.runscope.net/
Regards
Sergio

@Namphibian
Copy link

Hi Sergio.

My bad mqtt only supports 1024 bit. Will check on this some more over next
few days.

Kind Regards
Neil Franken
On 26 Nov 2015 7:29 PM, "Sergio Sagliocco" notifications@github.com wrote:

Hi Neil,
yes but...sometimes it works on servers with certificate that have 2048
key length! e.g https://yourapihere-com-r2pgihowjx7x.runscope.net/
Regards
Sergio


Reply to this email directly or view it on GitHub
#42 (comment).

@nicolasdeory
Copy link

Any news on this? :S

@Namphibian
Copy link

Hi People.

Just a reminder that saying that it does not work does not help nobody.
What errors are you seeing? Did you try and debug it? All of these problems
could be resolved by giving developers at least the error message for
example. In summary if you can't give an error then we can't fix the error.

On 25 Nov. 2015 9:39 pm, "Sergio Sagliocco" notifications@github.com
wrote:

Hi,
I'm trying to use https rest api with different servers: with a lot of
server doesn't works infact
rest.getResponse returns 0
For example connecting using https with github.com it doesn't work...some
ideas or help?
Thank you
Sergio


Reply to this email directly or view it on GitHub
#42.

@nicolasdeory
Copy link

Well, I fixed it after a lot of trial and error.

Couple of things if anybody else has the same problem:

Use rest.begin("HOST",80, false) instead of rest.begin("host");

When GET'ing something, put the response value to exactly the value you're expecting, or more (up to 500 i tried). If you put less, you'll get an invalid CRC error, as well as if you go over 500.

I finally got my sketch to connect to io.adafruit.com and get my feeds!

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

No branches or pull requests

3 participants