What is OpenSSL?
To use OpenSSL in an application, you need development headers and libraries. You can obtain a binary distribution or build the source for your needs; this page covers the source-build option.
Preparing the build environment
Perl
Download
strawberry-perl-5.42.3.1-64bit.msifrom https://strawberryperl.com/. The latest version should be fine.NASM
Download
3.02/nasm-3.02-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.5.9.tar.gzfrom https://openssl-library.org/source/. If you cannot extract it, executetar -xzf openssl-3.5.9.tar.gzin the command prompt.
As of 2026-11-25, OpenSSL 3.5.9 is in the supported LTS series 3.5, which is supported until 2030-04-08. Check the official downloads page for the latest supported patch when you build.
- Use the x64 Visual Studio developer command prompt. Run it as administrator only if you will install under Program Files.
- 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.
Installing to this default location requires administrator rights. To avoid elevation, set a writable prefix when configuring.
That is all.
