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

http_client Connect to HTTPS server #18

Closed
gtrunso opened this issue Nov 17, 2015 · 6 comments
Closed

http_client Connect to HTTPS server #18

gtrunso opened this issue Nov 17, 2015 · 6 comments
Labels

Comments

@gtrunso
Copy link

gtrunso commented Nov 17, 2015

I've a webservice running in node.js under the protocol HTTPS.
Could someone give an insight of how to perform this connection? I can't figure it out.

Thanks in regards.

@ras0219-msft
Copy link
Contributor

Hi, take a look at https://casablanca.codeplex.com/SourceControl/latest#Release/samples/BingRequest/bingrequest.cpp.

To use https, it should be as simple as changing the "http://" to "https://", assuming you have a valid certificate for your nodejs server. Alternatively, for testing purposes, you could disable certificate validation.

@Shedon
Copy link

Shedon commented Dec 18, 2015

but how to specify my certificate?

@gigaplex
Copy link
Contributor

Do you mean client side certificates? You didn't mention anything like that in the original question.

@Shedon
Copy link

Shedon commented Dec 21, 2015

/Do you mean client side certificates?/
yes,

/You didn't mention anything like that in the original question./
i'm not the topic starter

@gigaplex
Copy link
Contributor

/Do you mean client side certificates?/
yes,

Then that's a different question entirely. I don't think cpprest currently supports client side certificates. You may be able to work around the limitation by getting access to the native handle and using platform specific code.

/You didn't mention anything like that in the original question./
i'm not the topic starter

My apologies.

@ras0219-msft
Copy link
Contributor

Closing, since original question has been answered. Please feel free to open a separate issue about client side certificates.

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

No branches or pull requests

4 participants