How-to guide

How to update OpenSSL on Windows

OpenSSL has no auto-updater on Windows. To upgrade, download the new installer and run it over the existing installation. Your PATH settings are preserved. This guide covers how to check your current version and safely upgrade.

Check your current version

cmd.exe
C:\> openssl version
OpenSSL 3.0.12 24 Oct 2023
# Full build details:
C:\> openssl version -a
OpenSSL 3.0.12 24 Oct 2023
built on: Mon Oct 23 21:21:48 2023 UTC
platform: VC-WIN64A
OPENSSLDIR: "C:\Program Files\Common Files\SSL"

Compare your version to the latest available at slprowex.com. The current latest is OpenSSL 4.0.0.

OpenSSL 3.x and 4.x are not backwards-compatible with 1.x in all cases. If you are upgrading from 1.x, review the OpenSSL 3 vs 1.1 breaking changes first.

Update OpenSSL in place

  • 1

    Download the new installer

    Go to Win64 Prebuilt and download the latest Win64OpenSSL_Light-4_0_0.exe. Always download from the official source.

  • 2

    Verify the hash before running

    cmd.exe
    C:\Downloads> certutil -hashfile Win64OpenSSL_Light-4_0_0.exe SHA256
    a3f8c2...
    CertUtil: -hashfile command completed successfully.

    Compare to the hash on slprowex.com. Full guide: Verify Hashes.

  • 3

    Close any apps using OpenSSL

    Stop any running services or applications that load libcrypto.dll or libssl.dll. The installer cannot replace DLLs that are locked by a running process.

  • 4

    Run the new installer

    Double-click the installer and follow the wizard. When prompted for the install folder, use the same path as your current installation (typically C:\Program Files\OpenSSL-Win64). This replaces the old files in place while keeping your PATH entry.

  • 5

    Verify the upgrade

    cmd.exe — new window
    C:\> openssl version
    OpenSSL 4.0.0 6 Jun 2025
    Open a new terminal window after the update. The old window may still reference cached binaries.

Uninstall first then reinstall (optional)

For a completely clean upgrade — especially when moving from 1.x to 3.x or 4.x — uninstall the old version first:

  • Settings → Apps → Installed apps → find OpenSSL or ClocX → Uninstall.
  • After uninstalling, your PATH entry pointing to the old bin folder will no longer resolve. Remove it from PATH (Settings → Environment Variables).
  • Install the new version and add the new bin folder to PATH. See Add to PATH.

Update questions

Will updating break my existing scripts?
OpenSSL 4.x is compatible with most 3.x workflows. Moving from 1.x to 3.x or 4.x may break scripts that use deprecated APIs or the old FIPS mode. See OpenSSL 3 vs 1.1 for the full list of breaking changes.
Does updating keep my PATH settings?
Yes — if you install to the same folder (C:\Program Files\OpenSSL-Win64), your existing PATH entry stays valid. You do not need to update PATH after an in-place upgrade.
How do I know when a new version is released?
Check openssl.org/news/changelog.html or slprowex.com for new Windows builds. OpenSSL does not have an in-app update notification.
After updating I get libcrypto.dll errors
The new version may have renamed the DLL (e.g. libcrypto-3-x64.dll vs libcrypto-4.dll). Apps that bundled the old DLL will need to be updated. See Fix libcrypto.dll.

Download the latest version

OpenSSL 4.0.0 Win64 — verify the hash before running.

Win64 Prebuilt →

Related guides