To install OpenSSL on Windows 11, open Terminal and run winget install ShiningLight.OpenSSL.Light. Close and reopen Terminal, then run openssl version. If Windows says the command isn’t recognized, add C:\Program Files\OpenSSL-Win64\bin to your Path environment variable. The OpenSSL project publishes source code only, so you install a trusted prebuilt package such as this one, a Windows installer, or the copy bundled with Git.

Method 1: Install with winget (Recommended)
- Right-click Start and choose Terminal.
- Run
winget search opensslto see available packages. The Shining Light builds (listed on the OpenSSL project’s binaries page) are the most common. - Install the light version:
winget install ShiningLight.OpenSSL.Light. Developers who need headers and libraries for compiling can installShiningLight.OpenSSL.Devinstead. - Close Terminal and open a new window.
- Run
openssl version.
Is OpenSSL free?
Yes. OpenSSL is open source under the Apache 2.0 license.
Method 2: Use the Windows Installer
- Visit the Shining Light Productions “Win32/Win64 OpenSSL” page (linked from the OpenSSL wiki’s binaries list).
- Download the latest Win64 OpenSSL v3.x Light MSI (or EXE) installer.
- Run it and accept the default location, C:\Program Files\OpenSSL-Win64.
- When asked where to copy OpenSSL DLLs, choose The OpenSSL binaries (/bin) directory.
- Finish setup, then add the bin folder to PATH (next section).
How do I update OpenSSL?
Run winget upgrade ShiningLight.OpenSSL.Light, or download the latest installer.
Add OpenSSL to PATH
- Search Start for Edit the system environment variables and open it.
- Click Environment Variables.
- Under User variables, select Path and click Edit.
- Click New and enter
C:\Program Files\OpenSSL-Win64\bin. - Click OK on each window, then open a new Terminal and run
openssl version.
Method 3: Use the OpenSSL Included with Git for Windows
If you already have Git for Windows, it includes OpenSSL. Open Git Bash and run openssl version, or add C:\Program Files\Git\usr\bin to PATH to use it elsewhere. This version may lag behind the latest release.
Method 4: WSL
If you use the Windows Subsystem for Linux, OpenSSL is usually preinstalled in Ubuntu. Run openssl version in your WSL terminal, or install it with sudo apt install openssl.
Useful OpenSSL Commands
- Create a private key:
openssl genrsa -out private.key 2048 - Create a CSR:
openssl req -new -key private.key -out request.csr - Self-signed certificate (1 year):
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes - View a certificate:
openssl x509 -in cert.pem -text -noout - Test a website’s TLS:
openssl s_client -connect example.com:443 - Convert PEM to PFX:
openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem
Fixing Common OpenSSL Setup Problems
- “openssl is not recognized”: open a new Terminal after installing, and confirm the bin folder is in PATH.
- Wrong version runs: another program’s OpenSSL (for example, Git’s) is earlier in PATH. Run
where.exe opensslto see which copies exist and reorder PATH entries. - “Can’t open config file” warnings: set the
OPENSSL_CONFvariable to the openssl.cfg file in the install folder, or reinstall with defaults. - Avoid random download sites: use winget, the binaries list on the OpenSSL wiki, or a trusted package manager.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.