asio openssl 使用
来源:互联网 发布:mysql集群架构 编辑:程序博客网 时间:2024/05/22 16:03
OK, for anyone finding this in the future, you need to create your certificates and sign them appropriately. Here are the commands for linux:
//Generate a private key
openssl genrsa -des3 -out server.key 1024
//Generate Certificate signing request
openssl req -new -key server.key -out server.csr
//Sign certificate with private key
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
//Remove password requirement (needed for example)
cp server.key server.key.secureopenssl rsa -in server.key.secure -out server.key
//Generate dhparam file
openssl dhparam -out dh512.pem 512
Once you've done that, you need to change the filenames in server.cpp and client.cpp.
server.cpp
context_.use_certificate_chain_file("server.crt"); context_.use_private_key_file("server.key", boost::asio::ssl::context::pem);context_.use_tmp_dh_file("dh512.pem");
client.cpp
ctx.load_verify_file("server.crt");
Then it should all work!
- asio openssl 使用
- 在asio中使用OpenSSL
- boost.asio 使用点滴
- ASIO deadline_timer 的使用
- 使用asio搭建服务器
- Boost Asio服务器使用
- asio 使用笔记
- boost::asio 使用实例
- 使用asio实现ftp
- boost asio使用注意事项
- Boost.Asio使用实例
- openssl使用
- openssl使用
- Openssl使用
- openssl使用
- openssl使用
- openssl使用
- boost.asio openssl zlib protobuf icu vs2015编译
- Erlang tip累积
- 如何利用WGET下載檔案,並儲存到指定的目錄
- SEO探索四月百度算法调整 H1与title标签优化成看点
- 关于网络接口的ioctl使用
- 各种开源协议介绍 BSD、Apache Licence、GPL V2 、GPL V3 、LGPL、MIT
- asio openssl 使用
- 2.13 -实现Locate(L,x)返回x在链表中的位置
- 拦截win32 API
- ubuntu & android
- c# 结构体struct包含数与byte类型的转换(一)
- 使用JDK1.6编译器API动态编译java源代码实例
- 杭电2003 求绝对值
- 避免内存泄露, 有效利用内存 !
- 内核编译 & 模块编译