首页 > 其他分享 >window下编译openssl

window下编译openssl

时间:2023-09-18 15:47:02浏览次数:52  
标签:Run x86 openssl x64 will 编译 window perl

Building OpenSSL 1.1.1(b) Notes (Windows) · GitHub

 nasm下载地址:

https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/win64/nasm-2.16.01-installer-x64.exe

openssl下载地址:

https://codeload.github.com/openssl/openssl/zip/refs/heads/master

perl下载地址:

https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-64bit.msi

添加环境变量:

 

安装步骤:

Required: Visual Studio 2015 or 2017 (or probably later works)

Setup
1. Clone/download OpenSSL 1.1.1 source to a folder
2. Download / install Perl (They recommend Active perl)
   I recommend using Chocolatey so for me: choco install activeperl
3. Ensure Perl is in the system path. (Choco appears to do this by default)
4. Download / install NASM
   I recommend using Chocolatey so for me: choco install nasm
5. Ensure NASM is in the system path. (For me the directory to add was C:\Program Files\NASM)
6. Duplicate the OpenSSL folder into one for x64 and one for x86

Building Debug/Release Static/Shared x64/x86

x86
1. Open a Visual Studio Build Tools Command Prompt (Start->All Programs->Visual Studio 20**->Visual Studio Tools->VC->x86 Native Tools Command Prompt for...)
2. cd to your OpenSSL x86 folder (you created in Setup.6)
3. Run: perl Configure VC-WIN32   (add no-shared if you just want a static build)
4. Run: nmake   (this will take a bit)
5. Run: nmake test (this will take a bit too)
6. If everything went well, you have a binary in /apps and libs in the root of you x86 folder (both static and dynamic release)
7. Save off the built things you want to save (since they will be deleted in a moment)
8. Run: nmake clean
9: Run: perl Configure VC-WIN32 --debug  (add no-shared if you just want a static build)
10. Run: nmake   (this will take a bit)
11. Run: nmake test (this will take a bit too)
12. If everything went well, you have a binary in /apps and libs in the root of you x86 folder (both static and dynamic debug versions)
13. Save off the built things you want to save (I recommend putting them somewhere different from the release versions since they will have the same names)

For x64, follow the x86 steps except:
1. Replace x86 with x64 in: Steps 1,2,6,12
2. Replace VC-WIN32 with VC-WIN64A in steps 3 and 9

Note that there are (minor) differences in headers between x64 and x86 so you should save 2 include directories.

 


 

标签:Run,x86,openssl,x64,will,编译,window,perl
From: https://www.cnblogs.com/laremehpe/p/17712109.html

相关文章

  • 通过Sysmon+Nxlogs收集Windows Server 2012服务器日志-并以Syslog形式发送Json格式数
    0x01环境介绍WindowsServer2012已经安装部署好了域控,目的除了收集Windows服务器本身的日志外还收集域控环境下的各种日志。0x02Nxlog配置和使用使用社区版本即可,下载地址:https://nxlog.co/downloads/nxlog-ce#nxlog-community-edition使用的版本是当前最新版本安装过程就省略,......
  • windows server 原创用户启动后,弹窗--启动监听过程错误
    描述:弹出应用程序:服务控制管理器:在系统启动时至少有一个服务或驱动程序产生错误。详细信息,请使用事件查看器查看事件日志。server2003/xp/2000每次弹出服务控制管理器“系统启动时至少有一个服务或驱动程序产生错误”解决方法。解决方法:打开注册表,找到HKEY_LOCAL_MACHINE\S......
  • 花10美元升级到Window10
    微软将于今年7月底正式结束为期一年的Windows10免费升级活动,如果你当前正用着Windows7/8.1,还请务必抓住最后几个月的机会。不过对于运行WindowsXP或Vista的老用户来说,想要花费较少的代价升级至最新的Windows10操作系统,就只剩下购买授权这条路了。幸运的是,在7月29号之前,你仍可通......
  • 解决 ChatGLM.CPP+clBlast 编译错误(也适用于SD.CPP)
    首先安装OpenCL和clblast:vcpkginstallopenclclblast下载GitHub上的源码:gitclone--recurse-submoduleshttps://github.com/li-plus/chatglm.cppcdchatglm.cpp这个项目GGML子仓库中,third_party/ggml/src/CMakeList.txt有个错误。打开并找到178-183行: find_......
  • linux 搭建NAS服务,实现window访问Linux的nas共享数据目录
    1、部署sudoyuminstall-ysambasamba-client2、创建用户sudouseradd-m<username>sudosmbpasswd-a<username>3、配置共享目录:举例共享目录为data目录[data]path=/home/datawritable=yesguestok=yesvalidusers=<username>readonly=nocreate......
  • window 安装多个低版本chrome测试
    最近在用next13做一个简单的项目,需要兼容chrome60+以上版本,为了方便测试,特意在公司的台式机上安装了低版本。这里简单记录下高版本覆盖低版本的问题,这个方法不影响Windows系统内已安装的Chrome。下载对应的版本首先下载你想要的chrome版本,我是在这里找寻下载版本的:https://www......
  • 从macOS创建Windows 11启动盘
    下载win11官方iso磁盘工具,抹除u盘,格式MS-DOS(FAT32),名称WINDOWS11双击挂载isobrewinstallwimlibrsync-avh--progress--exclude=sources/install.wim/Volumes/CCCOMA_X64FRE_ZH-CN_DV9//Volumes/WINDOWS11wimlib-imagexsplit/Volumes/CCCOMA_X64FRE_ZH-CN_DV9/s......
  • Windows打开资源管理器后出现两个D盘是什么原因?
    Windows打开资源管理器后出现两个D盘是什么原因?登陆管理者账号同时按【win键+R】,输入regedit,打开【注册表】前往【HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders】找到【{F5FB2C77-0E2F-4A16-A381......
  • windows批量删除指定前缀key
    直接上代码:del_keys_by_prefix.bat@echooffecho调用格式:[redis地址][redis密码][redis库号][待删除的key前缀带*]setkeysfile=redis-cached-keys.txtredis-cli-h%1-a%2-n%3keys%4>%keysfile%FOR/F%%iin(%keysfile%)DO(redis-cli-h%1-a%2-n%3de......
  • Windows和Linux下通过go实现自删除
    自删除在攻防中都挺常见的,自写远控通常也有需要。可是在度娘里搜不到什么办法,于是就查查Windowsapi学习记录一回。linux先获得当前程序的文件名,再使用syscall这个包中的Unlink调用系统来删除一个目录或者文件的链接,链接没了也就删除完成了。fileName,_:=os.Executable()......