• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • Home
  • OpenSSL
  • Keytool
  • SSL Tools
  • Donate
  • Cookie Policy (EU)
  • Contribute to Mister PKI (Cybersecurity Guest Posts)
  • PKI for DevOps Engineers (Free Training)
  • SSL Certificate Consulting & TLS Troubleshooting
  • Apereo CAS Consulting

How to Install OpenSSL on Ubuntu

January 10, 2025 by Mister PKI Leave a Comment

This article will demonstrate how to install OpenSSL on the Ubuntu Linux platform. Most if not all installations of Ubuntu include OpenSSL by default. If you find yourself with an instance of Ubuntu that does not already have OpenSSL installed, then this article is for you. The examples in this article will work on the WSL (Windows Subsystem for Linux) for Ubuntu if you are using it instead of a complete install of Ubuntu.

OpenSSL provides a tool set of commands that allow you to perform cryptographic operations as well as certificate and key management functions. Additionally, you can test SSL and TLS connections between a server and client.

For a list of available commands visit any of our articles on how to use OpenSSL.

This article will also mention how to upgrade or install the latest version of OpenSSL, version 3. Finally, OpenSSL version 3 is supported in Ubuntu 24.04 by default.

If you’re looking for instructions on how to install OpenSSL on Windows, view our article here.

OpenSSL Installation Steps for Ubuntu

  1. Update your package manager cache of updates.
sudo apt update
  1. Install OpenSSL
sudo apt install openssl
  1. Verify your OpenSSL installation version.
openssl version

The output should be: OpenSSL 1.1.1f 31 Mar 2020 or something similar for your version.

install openssl on Ubuntu

On Ubuntu 24.04 should should see OpenSSL version 3.

$ openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

That’s it, you should now have a working version of OpenSSL on your Ubuntu instance. You can now run any of the OpenSSL commands, documented here. Be sure to check often for updated versions.

While it is possible to install OpenSSL version 3 on older versions of Ubuntu, it’s not required at this point. We recommend waiting for the package managers to catch up with the latest release or upgrade to the latest LTS version of Ubuntu.

Conclusion – How to install OpenSSL in Ubuntu

This article has demonstrated how to install OpenSSL on an Ubuntu machine. Let us know in the comments if you have any questions or would like to see alternate ways of installing or using OpenSSL on Ubuntu.

linux,  openssl,  Ubuntu

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

PKI for DevOps Engineers – Free Training Series

PKI for DevOps Training Hub

Lesson 1 – How TLS and PKI Work

Lesson 2 – Understanding X.509 Certificates

Lesson 3 – Certificate Chains Explained

Lesson 4 – Debug TLS with OpenSSL

Lesson 5 – Verify Certificate Chains

Lesson 6 – Creating CSRs with OpenSSL

Lesson 7 – Working with PKCS12 Certificates

Lesson 8 – Java Keystores and keytool

Lesson 9 – Certificate Expiration Monitoring

Lesson 10 – Automating Certificate Renewal

Lesson 11 – Common TLS Errors

Lesson 12 – PKI Architecture for DevOps

Recent Posts

  • OpenSSL dgst: Create Checksums and Verify Digital Signatures
  • OpenSSL crl: Check Certificate Revocation Lists and Revoked Certificates
  • OpenSSL crl2pkcs7: Create PKCS#7 and P7B Certificate Bundles
  • OpenSSL cms: Sign, Verify, Encrypt, and Decrypt Files
  • OpenSSL CMP: Automate Certificate Enrollment and Renewal

Footer

  • Twitter
  • YouTube

Copyright © 2026