What is OpenSSL?
It is an open-source library that provides the processing necessary for encrypted communication.
To use it from a program, since the C language source code is public, you need to build it and create a library.
Below, we will introduce the build procedure.
Preparing the build environment
Perl
Download
strawberry-perl-5.32.1.1-64bit.msifrom https://strawberryperl.com/. The latest version should be fine.NASM
Download
2.16.01/nasm-2.16.01-win64.zipfromDownloadat https://www.nasm.us/. The latest non-rc version should be fine. After installation, you need to add the folder where NASM was installed to the environment variable PATH.Visual Studio 2022 ** or ** Build Tools for Visual Studio 2022
Install
Visual Studio 2022 CommunityorBuild Tools for Visual Studio 2022from https://visualstudio.microsoft.com/ja/downloads/.
OpenSSL build procedure on Windows
- Download and extract
openssl-3.1.0.tar.gzfrom https://www.openssl.org/source/. If you cannot extract it, executetar -xzf openssl-3.1.0.tar.gzin the command prompt. - Launch the command prompt with administrator privileges.
- Open the extracted folder.
- Execute the following command *Change the
Communitypart according to the version of Visual Studio you installed
| |
- Execute the following command
| |
- Execute the following command (takes a considerable amount of time)
| |
- Execute the following command (takes a considerable amount of time)
| |
- Execute the following command
| |
If successful, OpenSSL will be installed in C:\Program Files\OpenSSL.
That is all.
