windows 平台下编译openssl 最新版本-3.0.5

2022年11月17日11:58:43

根据openssl 官方仓库的描述,他们不提供二进制版本的文件,需要我们自己针对不同的平台打包
windows 平台下编译openssl 最新版本-3.0.5

环境配置

安装好以下软件,并配置好环境变量

  1. Perl
  2. Nasm
  3. namke.exe
  4. cl.exe
    最后两个可以通过安装好vs2022 ,自动可以使用

开始编译

configure

根据自己的目标平台类型,选择一项进行编译,一半选择第一个即可

 - perl Configure VC-WIN32   
 - perl Configure VC-WIN64A    
 - perl Configure VC-WIN64-ARM

编译源码

nmake

通过搜索调用nmake 命令行工具
windows 平台下编译openssl 最新版本-3.0.5

命令执行完成如下
windows 平台下编译openssl 最新版本-3.0.5

编译测试

nmaketest

可以看到已经在测试中了
由于选择了最新版本的openssl ,可以看到部分密码套件已经不支持了(RC5 )
windows 平台下编译openssl 最新版本-3.0.5
最终测试成功,PASS
这一步骤大概耗时10 分钟左右 ,可以选择性跳过
windows 平台下编译openssl 最新版本-3.0.5

安装

nmakeinstall# 这一步需要管理员权限才可以,因为要安装文件到C 盘

可以看到已经安装成功,详细版本信息OpenSSL 1.1.1q 5 Jul 2022
windows 平台下编译openssl 最新版本-3.0.5

关于configure、make、make install 三者的区别可以参考下面这篇文章
https://thoughtbot.com/blog/the-magic-behind-configure-make-make-install

懒人秘笈

如果想省事儿,一键安装,可以选择下面的网站去下载即可
已有网站
https://slproweb.com/products/Win32OpenSSL.html

  • 作者:阿雷由
  • 原文链接:https://blog.csdn.net/helloexp/article/details/126849014
    更新时间:2022年11月17日11:58:43 ,共 629 字。