# LaoZu-EasySSL **Repository Path**: MyDearest35/laozu-easyssl ## Basic Information - **Project Name**: LaoZu-EasySSL - **Description**: 快速简单易用的基于boost::asio::ssl的协程ssl流库 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-21 - **Last Updated**: 2026-09-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简单轻松的 SSL 连接库 ## 给你的项目添加库 ```cmake include(FetchContent) FetchContent_Declare(laozu_easyssl GIT_REPOSITORY https://gitee.com/MyDearest35/laozu-easyssl.git) FetchContent_MakeAvailable(laozu_easyssl) target_link_libraries(YouProject PUBLIC LaoZu::EasySSL) ``` ### `root_certificates.hpp` 来源 ```c++ // 文档来源 https://boost.ac.cn/doc/libs/latest/libs/beast/doc/html/beast/using_io/ssl_tls_certificate.html // 示例来源 https://www.boost.org/doc/libs/latest/libs/beast/example/http/client/awaitable-ssl/http_client_awaitable_ssl.cpp // 头文件来源 https://github.com/boostorg/beast/blob/develop/example/common/root_certificates.hpp // 头文件来源 https://github.com/boostorg/beast/blob/develop/example/common/server_certificate.hpp #include "boost/beast/example/common/root_certificates.hpp" #include "boost/beast/example/common/server_certificate.hpp" ``` ### 注意编译器选择的库版本一致 ```c++ // 依赖库 boost::asio boost::beast boost::cobalt openssl ``` 比如 windows 的 x64-mingw_dynamic 和 x64-windows 的区别。