What would you suggest if I need use C++ REST SDK on Linux as a server, and want to secure the connection?

Jan 28, 2015 at 2:45 AM
What would you suggest if I need use C++ REST SDK on Linux as a server, and want to secure the connection?
Coordinator
Jan 28, 2015 at 4:49 PM
Hi evanc,

By secure I assume you mean using HTTPS. The two options I see are:
  1. Add HTTPS support to the http_listener on Linux and contribute it back to the library.
  2. Use a different framework/library for hosting your server.
Steve
Coordinator
Jan 28, 2015 at 5:46 PM
One other option is to write your server using the C++ REST SDK, but use Squid, Apache, or Nginx as a reverse proxy.

http://wiki.squid-cache.org/ConfigExamples/Reverse/SslWithWildcardCertifiate

This is somewhat common in the Node.js world: http://stackoverflow.com/questions/6763571/advantages-of-a-reverse-proxy-in-front-of-node-js

However, this is pretty complex and involves a lot of squid/apache/nginx specific stuff. We don't have the expertise to help you here, so any further inquiries along this path should be posted to another site like stack overflow, but I'd like to mention it as a possibility.
Jan 29, 2015 at 12:57 AM
Thanks Both!
Is there any plan to support HTTPS for C++ REST SDK on Linux officially?
Coordinator
Jan 29, 2015 at 12:59 AM
Hi evanc,

To be clear for the client portions of our library HTTPS is fully supported on all platforms. We aren't focusing much on the server side portions of the library so, no at this time we don't have concrete plans to go and implement it.

Steve
Jan 29, 2015 at 9:00 AM
Thanks stevetgates for letting me know, though I care about the server side for now:)
But the reverse proxy seems to be a workable solution for me.