qhttp icon indicating copy to clipboard operation
qhttp copied to clipboard

SSL support

Open kintel opened this issue 9 years ago • 7 comments

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.

kintel avatar Mar 06 '16 23:03 kintel

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.

azadkuh avatar Mar 07 '16 06:03 azadkuh

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.

kintel avatar Mar 07 '16 13:03 kintel

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

azadkuh avatar Mar 07 '16 14:03 azadkuh

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.

HappySeaFox avatar Sep 12 '16 15:09 HappySeaFox

@dmitrykx

Nowadays a public REST server without SSL is broken by design

agreed. i will, asap.

azadkuh avatar Sep 12 '16 19:09 azadkuh

@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.

azadkuh avatar Oct 06 '16 19:10 azadkuh

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

HappySeaFox avatar Jun 02 '17 18:06 HappySeaFox