【C++】已编译好的OpenSSL Windows版分享网站

http://slproweb.com/products/Win32OpenSSL.html

(文章末尾附下载列表)

说明:

例如:Win32 OpenSSL v1.1.1c -- 02.Win32OpenSSL-1_1_1c.exe安装后目录如下

基于此安装可以进行OpenSSL的二次开发,bin/lib/include开发所需的文件都在这个里面。比如使用此安装可以用于编译libcurl库。

OpenSSL在Windows下的编译真的非常麻烦,如果加上支持zlib就更麻烦(此网站的安装包都不支持zlib)。有编译好的OpenSSL Windows版真的会降低编译门槛和时间!

唯一不足的是没有支持zlib模块。查看安装包下的OpenSSL支持的模块,截图如下:

我编译的"OpenSSL 1.1.1c Win32 zlib MD(多线程)版"模块支持情况如下: 相比上图底部多了zlib支持

 

下载列表:

说明:因为OpenSSL在当前(2019.06.25)时间在维护的主版本有1.1.1c、1.1.0k、1.0.2s,因此此网站也仅提供了这几个版本。可以查看OpenSSL官网版本发布策略

我的百度网盘备份分享:链接:https://pan.baidu.com/s/1B_jI99kIFKVLS_NwX8Vvsw  提取码:0rob 

Download Win32/Win64 OpenSSL today using the links below!
 
FileTypeDescription
Win64 OpenSSL v1.1.1c Light
EXE | MSI (experimental)
3MB InstallerInstalls the most commonly used essentials of Win64 OpenSSL v1.1.1c (Recommended for users by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win64 OpenSSL v1.1.1c
EXE | MSI (experimental)
43MB InstallerInstalls Win64 OpenSSL v1.1.1c (Recommended for software developers by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.1.1c Light
EXE | MSI (experimental)
3MB InstallerInstalls the most commonly used essentials of Win32 OpenSSL v1.1.1c (Only install this if you need 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.1.1c
EXE | MSI (experimental)
30MB InstallerInstalls Win32 OpenSSL v1.1.1c (Only install this if you need 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win64 OpenSSL v1.1.0k Light3MB InstallerInstalls the most commonly used essentials of Win64 OpenSSL v1.1.0k (Recommended for users by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win64 OpenSSL v1.1.0k37MB InstallerInstalls Win64 OpenSSL v1.1.0k (Recommended for software developers by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.1.0k Light3MB InstallerInstalls the most commonly used essentials of Win32 OpenSSL v1.1.0k (Only install this if you need 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.1.0k30MB InstallerInstalls Win32 OpenSSL v1.1.0k (Only install this if you are a software developer needing 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win64 OpenSSL v1.0.2s Light3MB InstallerInstalls the most commonly used essentials of Win64 OpenSSL v1.0.2s (Recommended for users by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win64 OpenSSL v1.0.2s23MB InstallerInstalls Win64 OpenSSL v1.0.2s (Recommended for software developers by the creators of OpenSSL). Only installs on 64-bit versions of Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.0.2s Light2MB InstallerInstalls the most commonly used essentials of Win32 OpenSSL v1.0.2s (Only install this if you need 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
Win32 OpenSSL v1.0.2s20MB InstallerInstalls Win32 OpenSSL v1.0.2s (Only install this if you are a software developer needing 32-bit OpenSSL for Windows. Note that this is a default build of OpenSSL and is subject to local and state laws. More information can be found in the legal agreement of the installation.
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Windows 上使用 C++ 引入 OpenSSL 可以按照以下步骤进行: 1. 下载 OpenSSL 库 在 OpenSSL 官网的下载页面(https://www.openssl.org/source/)上,选择一个合适的本下载,推荐下载最新的稳定本(例如 OpenSSL 1.1.1)。 2. 安装 OpenSSL 库 将下载的 OpenSSL 压缩包解压到某个目录下,例如 `C:\OpenSSL`。 3. 配置 Visual Studio 打开 Visual Studio,创建一个新的 C++ 项目。在项目属性中进行如下配置: * 将 `C/C++` -> `常规` -> `附加包含目录` 添加 `C:\OpenSSL\include`。 * 将 `链接器` -> `常规` -> `附加库目录` 添加 `C:\OpenSSL\lib`。 * 将 `链接器` -> `输入` -> `附加依赖项` 添加 `libssl.lib;libcrypto.lib`。 4. 使用 OpenSSL 库 在 C++ 代码中引入 OpenSSL 库的头文件,并使用 OpenSSL 库的函数进行编程,例如: ```c++ #include <openssl/bio.h> #include <openssl/evp.h> #include <openssl/buffer.h> // 在这里使用 OpenSSL 库的函数 ``` 在编译时,需要将 OpenSSL 库的 DLL 文件(`libssl-1_1-x64.dll` 和 `libcrypto-1_1-x64.dll`)拷贝到生成的可执行文件所在的目录下。在 Visual Studio 中,可以将这两个 DLL 文件添加到项目中,并设置为“始终复制”属性,以确保它们被正确地复制到输出目录中。 注意:如果您使用的是静态链接库(.lib 文件),则不需要将 DLL 文件拷贝到输出目录中。 希望这些步骤可以帮助您在 Windows 上使用 C++ 引入 OpenSSL 库。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值