Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to Install OpenSSL on Windows Computers
  • Azure VM Creation With CLI 1
    Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • Microsoft Windows Windows 1
    How to specify a persistent default printer via the Windows Registry and PowerShell Windows
  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • Ping commands
    Ping from Source IP Address from all environments Mac
  • WindowsServer2022
    Windows Server 2022 Capabilities: Register Windows Admin Center with Azure Windows Server
  • Screenshot 2020 07 28 at 15.34.51
    Nslookup unknown: Fix cannot find non-existent domain Windows Server
  • microsoft edge
    How to forcefully remove Microsoft Edge Browser the hard way from your Windows device Windows

How to Install OpenSSL on Windows Computers

Posted on 07/11/202408/09/2025 Christian By Christian No Comments on How to Install OpenSSL on Windows Computers
OpenSSL on Windows

In this article, we shall discuss how to Install OpenSSL on Windows Computers. OpenSSL is an open-source command-line tool that is used to generate the SSL certificate and private key and is available in both versions 32 and 64 bit. Please see How to fix Windows Update Fails with Error 0x80092004, how to Fix the Port used for the Virtualhost is not an Apache Listen Port, and Shell Scripting: How to Automate a Process in Linux.

If you are using a UNIX variant like Linux or macOS, OpenSSL is probably already installed on your PC. In other words, OpenSSL is a cryptographic SSL/TLS tool kit, which provides a wide range of solutions for those who work on Digital Certificates, SSL/TLS testing, application development or implementation, application testing, and security testing.

It is licensed under an Apache-style license, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions.

There are a lot of things you can do using OpenSSL. Only a few of them are listed here:

  • You can create your own Certificate Authority and issue certificates on your network. 
  • Convert digital certificates from one to another format. 
  • Export or Import private keys from the certificates.
  • Validate the HTTPS connections to the destination website.
  • Verify the certificate of the destination website.
  • Run benchmark tests of your server and remote website.
  • Extract information like issuer, subject, issued and expiring dates, and fingerprint from certificates.
  • Create CSR.
  • Decode CSR and Certificates to verify contents.

Also, see Environment variables in Windows 10, What are the differences between a Role and a Feature, and How to Secure your API key in Postman.

Install OpenSSL On The Windows

First, you will have to download the latest version of OpenSSL from here. The installation procedure is very simple and straight. You should download the OpenSSL installer, run it to install, and configure Environment variables.

Download the OpenSSL installer, and choose the version that applies to your PC from here.

Download openssl

Run the EXE or MSI with default settings till completion and that should take care of installing OpenSSL. For me, I am downloading the MSI

openssl downloaded

Execute the downloaded installer file and install the OpenSSL on the Windows machine.

The installation procedure is quite simple and straight. By default, this is set to I do not accept the license.

Accept license
Openssl agreement accepted

Specify the Installation location

Select path

Click on Next if you are Okay with the program shortcut. If not, please use the Browse button to specify this.

Start Menu folder

I am fine with the defaults for the “Additional Tasks”. Click Next to proceed.

Openssl additonal tasks

click on the Install button to initiate the OpenSSL installation.

Install Openssl

If you wish to donate, then select any of the buttons. For me, I will uncheck and select finish. If you do not want to donate, pleae uncheck.

Openssl on windows finished
How to Install OpenSSL on Windows Computers fulfilled

Alternatively, you could also install OpenSSL via Cygwin. Cygwin offers a simple way to install a large collection of free and open-source software on Windows. See how How to install Ansible on Windows with Cygwin.

Please see How to determine Cygwin version, and how to view installed packages in Cygwin. Here is how to install additional packages via Cygwin, and How to view installed packages in Cygwin on Windows.

Why Create an environment variable?

To make OpenSSL accessible from any directory. That is, outside its own directory when opening a Command Prompt in an arbitrary location etc.

It is more convenient to use OpenSSL from the command line in the directory of your choice. After the initial install, the openssl.exe is only available from the directory where it resides as shown below. You could open a command prompt from here and perform the operations you want.

C:\Program Files\OpenSSL-Win64\bin

Set Environment variable

To add OpenSSL to your PATH (env variable) Open Run using ‘Windows’ + ‘r’ then type ‘sysdm.cpl‘. Go to Advanced > Environment Variable.

Or hit the Windows button on your keyboard or click it in the task bar, then search for “Environment Variables”.

Environment variable

In the system variables section, select Path and click Edit.

system variable path edit

Click on Browse.

browser openssl directory

Go to where the openssl.exe is, which should be at “This PC > Windows (C:) > Program Files > OpenSSL – Win64 > bin” and select that folder. Click OK.

openssl bin folder

The path has been added. Click on Ok on all open windows (wizards) until they are closed

Path added to envionrment variable

Verify that OpenSSL is now accessible from outside its own directory by opening a Command Prompt in an arbitrary location. I just opened the Command Prompt and left it at its default directory. Enter openssl version and see the result.

Note: If you already had a command prompt open. You will need to close and reopen in order for this to work

openssl version

In the OpenSSL commands below, replace the filenames in ALL CAPS with the actual paths and filenames you are working with.

View contents of PEM certificate file

To view the conetent of the .pem file, please run the command below.

openssl x509 -in CERTIFICATE.pem -text -noout

Learn the differences between Private and Public networks in Windows to VPN, and how to Convert a PEM Key to a PPK Key on a Linux and Windows.

Read Content of the Private Key (in .PEM format for Errors)

The command openssl rsa -in is used to process RSA private keys using OpenSSL. It allows you to read, modify, or convert RSA private keys in various formats with the command below. Here is an interesting article from SSL.

openssl rsa -in
View contents of PEM certificate file

Below is an explanation of what the command does

  • openssl: This is the OpenSSL command-line tool, which provides various cryptographic functions.
  • rsa: This specifies that you want to work with RSA private keys.
  • -in <filename>: This option specifies the input file, which should be an existing RSA private key file (in PEM format).

Please see Apache errors associated with WAMP installation for TeamPass, how to Setup VirtualHost with SSL on WAMP Server, and how to uninstall WAMPServer from Windows.

Converting to a different key format/Publick Key Extraction

You can also use the openssl rsa command to convert the key from one format to another. Such as from the PEM to DER, or to extract the public key from the private key as shown below.

openssl rsa -in private_key.pem -out public_key.pem
Apache keys
Extract public keys from private keys

The above command will invokes the OpenSSL command-line tool and instruct it to process an RSA private key.

  • -in private_key.pem specifies the input file (private_key.pem) that contains the RSA private key. This file must be in PEM format, which is a base64-encoded format that includes delimiters such as —–BEGIN PRIVATE KEY—– and —–END PRIVATE KEY—–.
  • -out public_key.pem specifies the output file (public_key.pem) where the extracted public key will be saved. The public key will be written to this file in PEM format as shown in the above image.

Note: The public key can be shared openly, while the private key must remain secure. Extracting the public key from the private key allows you to use the public key for encryption or verification while keeping the private key secure for decryption or signing.

I hope you found this article very useful on How to Install OpenSSL on Windows Computers. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows, Windows Server Tags:Microsoft Windows, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: How to fix Windows Update Fails with Error 0x80092004
Next Post: Fix missing path and delete a Veeam Backup Repository

Related Posts

  • Configure Windows Server with Sconfig
    How to Configure Windows Server Core using SConfig Windows
  • Reset folder view settings on File Explorer for Windows 11 and 10
    Reset folder view settings on File Explorer for Windows 11 and 10 Windows
  • Screenshot 2022 04 13 at 21.38.35
    Check Weather Conditions via Command Line on Windows, macOS, Linux and Web Linux
  • logon failure and requested session denied
    Logon Failure: User has not been granted the requested logon type Windows
  • Feature image Password protect a virtual hard disk
    Create a Password-Protected VHD Using BitLocker on Windows Windows
  • maxresdefault
    How to fix Error reading setup initialization file Windows

More Related Articles

Configure Windows Server with Sconfig How to Configure Windows Server Core using SConfig Windows
Reset folder view settings on File Explorer for Windows 11 and 10 Reset folder view settings on File Explorer for Windows 11 and 10 Windows
Screenshot 2022 04 13 at 21.38.35 Check Weather Conditions via Command Line on Windows, macOS, Linux and Web Linux
logon failure and requested session denied Logon Failure: User has not been granted the requested logon type Windows
Feature image Password protect a virtual hard disk Create a Password-Protected VHD Using BitLocker on Windows Windows
maxresdefault How to fix Error reading setup initialization file Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Azure VM Creation With CLI 1
    Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • Microsoft Windows Windows 1
    How to specify a persistent default printer via the Windows Registry and PowerShell Windows
  • BitLocker
    Hide Default BitLocker Drive Encryption item in Windows Windows Server
  • Ping commands
    Ping from Source IP Address from all environments Mac
  • WindowsServer2022
    Windows Server 2022 Capabilities: Register Windows Admin Center with Azure Windows Server
  • Screenshot 2020 07 28 at 15.34.51
    Nslookup unknown: Fix cannot find non-existent domain Windows Server
  • microsoft edge
    How to forcefully remove Microsoft Edge Browser the hard way from your Windows device Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.