Install and Configure OpenSSL on Windows Server 2019

In this article, we want to teach you to Install and Configure OpenSSL on Windows Server 2019.

OpenSSL is an all-around cryptography library that offers open-source applications of the TLS protocol. It is available for Linux, Windows, macOS, and BSD systems. OpenSSL allows users to perform various SSL-related tasks, including CSR (Certificate Signing Request) and private keys generation and SSL certificate installation.

Install and Configure OpenSSL on Windows Server 2019

To install OpenSSL on your Windows Server, you can follow the steps below.

This guide will cover the installation of OpenSSL on Windows Server 2019, 2016, 2012.

Installing OpenSSL on Windows Server 2019

First, you need to 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 version.

Also, you can use the curl.exe command to download it from the PowerShell:

curl.exe -L -o Win64OpenSSL.exe
PS C:\Users\Administrator> curl.exe -L -o Win64OpenSSL.exe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 139M 100 139M 0 0 9501k 0 0:00:15 0:00:15 --:--:-- 10.2M

When your installation is completed, run the installer by double-clicking on .exe file or from PowerShell run the command below:


Then, accept the Software license agreement and click “Next”.

OpenSSL license agreement

Here you need to select the destination folder where OpenSSL will be installed on your Windows server and click Next.

Destination location for OpenSSL on Windows server 2019

Next, you need to choose the directory for the application shortcut and click next.

Application shortcut

At this point, you need to choose the additional tasks to be performed and click next.

OpenSSL additional tasks on Windows server 2019

At this point, you can start your OpenSSL installation on Windows Server 2019 by clicking Install.

Install OpenSSL

This will take some time to complete.

Then, click Finish to end your OpenSSL installation of your Windows Server.

Finish OpenSSL installation

Configuring OpenSSL on Windows Server 2019

At this point, you need to add C:\OpenSSL-Win64 to the Windows environment PATH. From your PowerShell 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 OpenSSL-Win64 with OpenSSL-Win32.

Now you are ready to use OpenSSL on Windows Server 2019 to generate certificates. Start by exporting OPENSSL_CONF.

set OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg

Then, create a test SSL certificate to validate our installation.

openssl.exe req -new -nodes -keyout server.key -out server.csr -newkey rsa:2048
PS C:\Program Files\OpenSSL-Win64\bin> ls

Directory: C:\Program Files\OpenSSL-Win64\bin

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 3/2/2022 3:05 AM cnf
d----- 3/2/2022 3:05 AM PEM
-a---- 2/24/2022 9:38 AM 8299
-a---- 2/24/2022 9:38 AM 71680 capi.dll
-a---- 2/24/2022 9:38 AM 46592 dasync.dll
-a---- 2/24/2022 9:38 AM 155136 legacy.dll
-a---- 2/24/2022 9:38 AM 5125632 libcrypto-3-x64.dll
-a---- 2/24/2022 9:38 AM 772096 libssl-3-x64.dll
-a---- 2/24/2022 9:38 AM 83456 loader_attic.dll
-a---- 2/24/2022 9:38 AM 12292 openssl.cfg
-a---- 2/24/2022 9:38 AM 714240 openssl.exe
-a---- 2/24/2022 9:38 AM 49664 ossltest.dll
-a---- 2/24/2022 9:38 AM 58368 padlock.dll
-a---- 2/24/2022 9:38 AM 7608
-a---- 2/24/2022 9:38 AM 38400 p_test.dll
-a---- 2/24/2022 9:38 AM 6946

PS C:\Program Files\OpenSSL-Win64\bin> ./openssl.exe req -new -nodes -keyout server.key -out server.csr -newkey rsa:2048


At this point, you learn to Install and Configure OpenSSL on Windows Server 2019.

Hope you enjoy it.

May you will be interested in these articles:

How To Set up WordPress on Windows Server 2019.

How To Set up Apache Tomcat on Windows 10/Server.

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles


Most Popular