Hello everyone! As a certified OSCP security specialist here at Devolutions, I have the privilege of testing the security of our code, and our solutions to ensure that you have the most secure experience when using our products. Besides that, I also work with developers to write safer code, I keep up with trends at security conferences and during breaks, I like to play the Star Wars pinball machines in the break room. As a huge Star Wars fan, the office here at Devolutions makes me feel right at home.
Table of Contents
- Installing OpenSSL on Windows
- Installing OpenSSL on Linux
- Arch Linux
- CentOS / Red Hat
- Ubuntu
- Installing OpenSSL on macOS
- Advanced: Self Compile
In a recent tutorial, I explained how to generate secure self-signed server and client certificates with OpenSSL. Today, I thought it would be helpful to focus on manually installing OpenSSL on Windows, Linux, and macOS.
Installing OpenSSL can be tricky, and there are a few different ways to do this. To simplify your life, I have listed the method for each OS that I believe is the most straightforward.
Installing OpenSSL on Windows
This tutorial is mostly for Windows 10 users, since OpenSSL does not ship with Windows 10 by default.
OpenSSL can be installed with Chocolatey, which can be easily deployed in an organization or installed for a single user. It is also be a great tool for patch management.
Once Chocolatey has been installed, run the following command line:
choco install openssl
Installing OpenSSL on Linux
Arch Linux
By default, OpenSSL is already included in Arch Linux. If this is not the case with your instance, then run the following command line:
pacman -S openssl
CentOS / Red Hat
By default, OpenSSL is already included in CentOS. If this is not the case with your instance, then run the following command line:
yum install openssl
Ubuntu
By default, OpenSSL is already included in Ubuntu. If this is not the case with your instance, then run the following command line:
apt install openssl
Installing OpenSSL on macOS
By default, OpenSSL is already installed in macOS. However, your version may be outdated. If so, then you can install the latest version with Homebrew. After installing Homebrew, simply run the following command line:
brew install openssl
Advanced: Self Compile
Some people do not trust the pre-compiled binaries available on the package sources listed above. If you feel this way, then OpenSSL can be compiled from sources by following the steps listed here: https://github.com/openssl/openssl. However, you should be aware that this is a complex process and requires significant technical skill.
I hope this tutorial helps you along your journey to conquer the certificates world! If you have any questions, comments, or requests for new tutorials, please post below.
FAQs
Step-by-Step Guide to Install OpenSSL on Windows
- Download OpenSSL. Go to the official OpenSSL website and download the latest version of OpenSSL for Win. ...
- Run the Installer. ...
- Installation Wizard. ...
- Copy DLLs to the Windows System Directory. ...
- Customize Installation (Optional) ...
- Complete the Installation. ...
- Set Environment Variables.
How do I install OpenSSL on Linux? ›
In most Linux distributions, OpenSSL can be installed using the command, sudo apt-get install openssl or sudo yum install openssl . You can verify that OpenSSL is properly added with the command, openssl version . This command will install OpenSSL on your system.
How to install OpenSSL in Windows using PowerShell? ›
To install for the current user, start a PowerShell session and run: PS> Install-Module -Name OpenSSL -Scope CurrentUser. To install for all users, start a PowerShell session, with admin privileges, and run: PS> Install-Module -Name OpenSSL -Scope AllUsers.
How to install OpenSSL on Mac command line? ›
Instructions
- To install openssl, run the following command in macOS terminal (Applications->Utilities->Terminal) sudo port install openssl Copy.
- To see what files were installed by openssl, run: port contents openssl Copy.
- To later upgrade openssl, run: sudo port selfupdate && sudo port upgrade openssl Copy.
What version of OpenSSL do I have in Windows? ›
Check the OpenSSL Version in Windows
Access Command Prompt: Press Win + R, type “cmd,” and hit Enter to open the Command Prompt. The prompt will reveal the installed OpenSSL version on your Windows system.
How do I add OpenSSL to path in Windows? ›
Open System Properties > Advanced > Environment Variables b. Under System variables, select Path from the list then click Edit. (You should come to a pop-up window with a list of directory paths) c. Click New and input the directory path to the OpenSSL bin folder.
What is the OpenSSL command in Linux? ›
OpenSSL is an open-source command line tool that is commonly used to generate private keys, create CSRs, install your SSL/TLS certificate, and identify certificate information.
How do I install OpenSSL on Windows medium? ›
Installing OpenSSL on Windows
Visit the OpenSSL Windows binaries page. Download the appropriate installer for your Windows version (Win32/Win64). Double-click the downloaded executable file. Follow the installation prompts and accept the defaults.
How do I check if OpenSSL is installed in PowerShell? ›
Expert-Verified Answer
To check the OpenSSL version in Windows, you can use the Command Prompt or PowerShell. In Command Prompt, type 'openssl version'. In PowerShell, run 'Get-Command openssl'. To check the OpenSSL version in Windows, you can use the Command Prompt.
How to check if OpenSSL is installed on Mac? ›
The OpenSSL version that is being used by Mac OS X can be checked by typing "OpenSSL version" into a Terminal command prompt. If the results of running OpenSSL return "0.9.
Whether you are building apps for just macOS or for cross-platform, if your app is using OpenSSL for crypto-works, you will have to install OpenSSL library since macOS ships with LibreSSL. Furthermore, cross-platform cryptography in . Net Core and . Net 5 uses OpenSSL on macOS.
How to build OpenSSL on macOS? ›
OpenSSL
- Get the Code. Switch to /usr/local/src and download the source package. ...
- Compile and Install. Configure, compile and install into /usr/local/mac-dev-env/openssl-1.1. ...
- Shell. Execute the following lines to update your Bash startup script. ...
- Certificates. ...
- Verify the Installation.
How to run OpenSSL in cmd? ›
Solution
- In Windows, click Start Run.
- In the Open box, type CMD and click OK.
- A command prompt window appears.
- Type the following command at the prompt and press Enter: cd \OpenSSL-Win32.
- The line changes to C:\OpenSSL-Win32.
- Type the following command at the prompt and press Enter: ...
- Restart computer (mandatory)
How to install OpenSSL 3.0 on Windows 11? ›
How To Install OpenSSL On The Windows Platform?
- Download OpenSSL Installer. ...
- Run the OpenSSL Installer. ...
- Installation in progress…….
- Finish OpenSSL Installation. ...
- Set Environment Variable. ...
- Verify the Installation.
How to install SSL certificate using OpenSSL? ›
How to Install and Configure Your SSL Certificate
- Primary and intermediate certificates. You should've received a your_domain_name. ...
- Copy the certificate files to your server. ...
- Concatenate the primary and intermediate certificates. ...
- Edit the Nginx virtual hosts file. ...
- Restart Nginx. ...
- Congratulations!
How to install SSL certificate in Windows? ›
In the left pane of the console, double-click Certificates (Local Computer). Right-click Personal, point to All Tasks, and then select Import. On the Welcome to the Certificate Import Wizard page, select Next. On the File to Import page, select Browse, locate your certificate file, and then select Next.