matt-42 / silicon

A high performance, middleware oriented C++14 http web framework please use matt-42/lithium instead
http://siliconframework.org
MIT License
1.72k stars 138 forks source link

How to enable ssl? #39

Closed fnc12 closed 7 years ago

fnc12 commented 7 years ago

I want to use a secured connection in case if someone listens to internet traffic to keep access token safe. How to perform this thing with silicone framework?

matt-42 commented 7 years ago

Today the only way is to place silicon behind a ssl enabled nginx. I'll update the silicon backend this week so that you can use the MHD backend with SSL.

matt-42 commented 7 years ago

It is now possible with https://github.com/matt-42/silicon/commit/37775916d835a9433a138fc843fcb1be634f17f4

Checkout this example : https://github.com/matt-42/silicon/blob/master/examples/https.cc