azadkuh / qhttp

a light-weight and asynchronous HTTP library (both server & client) in Qt5 and c++14
MIT License
484 stars 158 forks source link

SSL support #10

Open kintel opened 8 years ago

kintel commented 8 years ago

Have you considered adding support for SSL in the http server?

I'm considering using this for pull information out of a native app, initiated from a website. Websites should always be loaded over SSL and browsers tend to disallow mixed http/https content.

azadkuh commented 8 years ago

nice suggestion, I've deployed a private fork of qhttp+https (with self signed certificates!!) for a client, will try to rewrite the code into this repository. the initial inception of qhttp was a simple REST server by Qt, as you know a web server is a far more advanced beast!

probably a well established and tried 3rd party solution as nginx as a reverse ssl proxy is more practical and secure.

kintel commented 8 years ago

nginx makes sense for server deployment. I was also testing https://mitmproxy.org as a light-weight reverse proxy for testing. ..but for embedding into a C++/Qt desktop app, I think adding SSL to qhttp would make some sense.

azadkuh commented 8 years ago

@kintel thank you for introducing mitmproxy! (i like nginx for its small size, sheer performance, modules, easy deployment and the most important: great community!)

HappySeaFox commented 8 years ago

Hi. What about supporting SSL in a server code? I'd like to implement a REST SSL server, but the great QHTTP library doesn't support SSL on the server side. Nowadays a public REST server without SSL is broken by design. It will be really great to have SSL support.

azadkuh commented 8 years ago

@dmitrykx

Nowadays a public REST server without SSL is broken by design

agreed. i will, asap.

azadkuh commented 8 years ago

@kintel @dmitrykx i've added https/ssl support to qhttp::server::QHttpServer class in dev branch, and tried to make it as simple as possible.

please have a look at ssl-simple and give me your valuable feedback.

HappySeaFox commented 7 years ago

Hi. I've tested it and it works fine. Thanks!