如何使用cpp来实现HTTPS-服务器?
以下问题阻止了我将asio和cpp结合起来:
1. You use the asio ssl acceptor
2. Which instantiates a connection
3. Then perform the SSL handshake over this connection, and finally
4. Have cpp-netlib serve HTTP over this connection但是,如何将connection的HTTP连接处理程序与接收方所使用的HTTP连接处理程序分开呢?
发布于 2014-11-03 20:30:25
最近发布的cpp包含一个工作示例。你可以在cpp-netlib-0.11.1RC2/libs/network/example/http/ssl.上找到它github文件在那里:https://github.com/cpp-netlib/cpp-netlib/tree/0.11-devel/libs/network/example/http/ssl
您必须使用async_server。
发布于 2014-03-31 17:17:43
可能性很大,但你试过以下几种方法吗?
#define BOOST_NETWORK_ENABLE_HTTPS
在包括boost网络http客户端之前。OpenSSL在编译器路径中。https://stackoverflow.com/questions/20525372
复制相似问题