In this tutorial, we want to show you How To Install and Configure OpenSSL on Windows Server 2022.
OpenSSL is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
Steps To Install and Configure OpenSSL on Windows Server 2022
To complete this guide, you must log in to your Windows Server and follow the steps below.
This guide will cover the installation of OpenSSL on Windows Server 2019, 2016, and 2012.
Download OpenSSL For Windows
First, you must visit the OpenSSL Downloads Page and take the latest version of OpenSSL that matches your CPU architecture. You have an option of choosing the Light version or the full version.
Here we will download the 64-bit full version.
Also, you can use the curl.exe command to download it from the PowerShell Admin:
curl.exe -L -o Win64OpenSSL.exe https://slproweb.com/download/Win64OpenSSL-3_0_7.exe
PS C:\Users\Administrator> curl.exe -L -o Win64OpenSSL.exe https://slproweb.com/download/Win64OpenSSL-3_0_7.exe Output % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 141M 100 141M 0 0 2071k 0 0:01:10 0:01:10 --:--:-- 5968k
When your installation is completed, run the installer by double-clicking on
.exe file or from PowerShell run the command below:
Set up OpenSSL on Windows Server 2022
When you run the OpenSSL file, maybe you will get and massage that you need to install the required packages, click yes to complete. Then, you will see the Software license agreement. Click I accept the agreement and click Next.
Here you need to select the destination folder where OpenSSL will be installed on your Windows server and click Next.
Next, you need to choose the directory for the application shortcut and click Next.
At this point, you need to choose the additional tasks to be performed and click Next.
At this point, you can start your OpenSSL installation on Windows Server 2022 by clicking Install.
This will take some time to complete.
Then, click Finish to end your OpenSSL installation of your Windows Server.
Configure OpenSSL on Windows Server 2022
At this point, you need to add
C:\OpenSSL-Win64 to the Windows environment PATH. From your PowerShell Admin run the command below:
$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User") [System.Environment]::SetEnvironmentVariable("PATH", $userenv + "C:\OpenSSL-Win64\bin", "User")
Note: For a 32-bit system, replace
Generate Certificates with OpenSSL
Now you are ready to use OpenSSL on Windows Server 2022 to generate certificates. Start by exporting
Then, create a test SSL certificate to validate our installation.
openssl.exe req -new -nodes -keyout server.key -out server.csr -newkey rsa:2048
At this point, you have learned to Install and Configure OpenSSL on Windows Server 2022.
Hope you enjoy it.
You may be like these articles on the Orcacore website: