{"id":6905,"date":"2023-10-04T08:04:10","date_gmt":"2023-10-04T08:04:10","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=6905"},"modified":"2023-10-04T08:04:11","modified_gmt":"2023-10-04T08:04:11","slug":"how-to-install-openssl-on-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/","title":{"rendered":"How to Install OpenSSL on Ubuntu Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en.jpg\" alt=\"setup and configure OpenSSL on Ubuntu Debian Linux  18.04 \/ 20.04 \/ 22.04 \" class=\"wp-image-6924\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p><strong>OpenSSL<\/strong> is an open-source toolkit that implements the Secure Sockets Layer (SSL v2\/v3) and Transport Layer Security (TLS v1) protocols, as well as a full-strength general purpose cryptography library. It is used to provide cryptographic functions and secure communications capabilities in many software packages and applications.<\/p>\n\n\n\n<p>In this comprehensive guide, we will walk through the process of installing OpenSSL on <strong>Debian and Ubuntu Linux 18.04 \/ 20.04 \/ 22.04<\/strong> step-by-step. We will cover:<\/p>\n\n\n\n<ul>\n<li>Understanding OpenSSL and its uses<\/li>\n\n\n\n<li>Checking if OpenSSL is already installed<\/li>\n\n\n\n<li>Choosing the right OpenSSL version to install<\/li>\n\n\n\n<li>Using apt to install OpenSSL<\/li>\n\n\n\n<li>Downloading and compiling OpenSSL from source<\/li>\n\n\n\n<li>Verifying the OpenSSL installation<\/li>\n\n\n\n<li>Troubleshooting tips<\/li>\n<\/ul>\n\n\n\n<p>We will also provide plenty of background information, explanations, and examples to help you fully understand each step of the process. Whether you are a beginner or advanced Linux user, this guide aims to provide everything you need to get OpenSSL installed correctly on your Ubuntu system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>Before we begin installing OpenSSL, let&#8217;s go over some prerequisites:<\/p>\n\n\n\n<ul>\n<li>An Ubuntu Linux operating system (any modern version should work)<\/li>\n\n\n\n<li>Administrative privileges &#8211; you will need to use&nbsp;<code>sudo<\/code>&nbsp;for some installation steps<\/li>\n\n\n\n<li>Basic command line knowledge for executing terminal commands<\/li>\n\n\n\n<li>GNU compiler tools like gcc and make (for compiling from source)<\/li>\n<\/ul>\n\n\n\n<p>That&#8217;s it &#8211; let&#8217;s move on to understanding what OpenSSL is and why it&#8217;s useful.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-openssl\">What is OpenSSL ?<\/h2>\n\n\n\n<p>OpenSSL is a robust and versatile cryptography toolkit that implements the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols for providing encrypted communications between applications. It also includes a general purpose cryptographic library that provides various cryptographic functions like hashing, digital signatures, encryption\/decryption, and more.<\/p>\n\n\n\n<p>Some specific uses of OpenSSL include:<\/p>\n\n\n\n<ul>\n<li>Providing encryption for internet services and connections &#8211; HTTPS websites, SSH, VPNs, email etc rely on TLS\/SSL which is implemented using OpenSSL.<\/li>\n\n\n\n<li>Encrypting sensitive data &#8211; OpenSSL can encrypt files, data streams and more through mechanisms like symmetric ciphers.<\/li>\n\n\n\n<li>Securely hashing passwords &#8211; Storing passwords as hashes instead of plaintext is recommended, and OpenSSL provides functions like SHA256 to create secure password hashes.<\/li>\n\n\n\n<li>Generating private\/public key pairs and certificates &#8211; OpenSSL is used to create public key infrastructure (PKI) for implementing SSL\/TLS.<\/li>\n\n\n\n<li>Signing messages cryptographically for tamper-proofing and identity verification.<\/li>\n<\/ul>\n\n\n\n<p>As you can see, OpenSSL forms a crucial backbone for encrypted communications and internet security services. Next, let&#8217;s check if we already have it installed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-if-openssl-is-already-installed\">Check if OpenSSL is already installed<\/h2>\n\n\n\n<p>Before installing OpenSSL, it&#8217;s worth checking if it is already present on your Ubuntu system from a previous installation.<\/p>\n\n\n\n<p>To check if OpenSSL is installed, use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ openssl version<\/code><\/pre>\n\n\n\n<p>If OpenSSL is installed, it will print out version information like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">OpenSSL 1.1.1f  31 Mar 2020<\/code><\/pre>\n\n\n\n<p>This indicates OpenSSL is already available on your system and you likely don&#8217;t need to install it again. Make sure the installed version is still supported and up-to-date.<\/p>\n\n\n\n<p>If the&nbsp;<code>openssl<\/code>&nbsp;command is not found, you&#8217;ll see an error like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">bash: openssl: command not found<\/code><\/pre>\n\n\n\n<p>This means OpenSSL is not yet installed, so we&#8217;ll need to proceed with installing it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"choosing-the-right-openssl-version\">Choosing the right OpenSSL version<\/h2>\n\n\n\n<p>There are a few different versions of OpenSSL available that can be installed on Ubuntu. The main ones you&#8217;ll likely choose from are:<\/p>\n\n\n\n<ul>\n<li><strong>OpenSSL 1.1.x<\/strong>&nbsp;&#8211; The modern Long Term Support branch that provides regular updates and support until 2023. This is the recommended branch for most uses.<\/li>\n\n\n\n<li><strong>OpenSSL 1.0.x<\/strong>&nbsp;&#8211; The older 1.0.x branch that is in security maintenance until 2023 but not receiving new features. Only use if you have legacy app compatibility issues with 1.1.x.<\/li>\n\n\n\n<li><strong>OpenSSL 3.0<\/strong>&nbsp;&#8211; The newest 3.x version branch released in 2021. Provides new features but less stability and support. Only use if you specifically need bleeding edge features.<\/li>\n<\/ul>\n\n\n\n<p>In most cases, you should install&nbsp;<strong>OpenSSL 1.1.x<\/strong>&nbsp;to get the latest long term stable features and security updates. Only use older or newer branches if you have specific needs.<\/p>\n\n\n\n<p>On Ubuntu, the&nbsp;<code>openssl<\/code>&nbsp;package will install the latest 1.1.x version which is recommended for most users. When compiling from source, choose the latest 1.1.x source snapshot.<\/p>\n\n\n\n<p>Now let&#8217;s go over the installation process using apt and from source.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-openssl-using-apt\">Installing OpenSSL using Apt<\/h2>\n\n\n\n<p>The easiest way to install OpenSSL on Ubuntu is by using the&nbsp;<code>apt<\/code>&nbsp;package manager. Here are the steps:<\/p>\n\n\n\n<ul>\n<li>Update your apt repositories to fetch the latest package listings:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update<\/code><\/pre>\n\n\n\n<ul>\n<li>Install the&nbsp;<code>openssl<\/code>&nbsp;package:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install openssl<\/code><\/pre>\n\n\n\n<ul>\n<li>Verify the installed version:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ openssl version<\/code><\/pre>\n\n\n\n<p>This will show the newly installed version, likely 1.1.x<\/p>\n\n\n\n<p>That&#8217;s it! Apt will download and install the latest OpenSSL version from the official Ubuntu repositories automatically.<\/p>\n\n\n\n<p>Depending on your base Ubuntu version, you may get older 1.0.x versions using apt. But this method is great for quickly installing or upgrading to the latest supported OpenSSL release.<\/p>\n\n\n\n<p>Next, let&#8217;s go over compiling and installing from source for more control.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"downloading-and-compiling-openssl-from-source\">Downloading and compiling OpenSSL from source<\/h2>\n\n\n\n<p>For some use cases, you may want to download and compile OpenSSL from source rather than using apt:<\/p>\n\n\n\n<ul>\n<li>Install the latest OpenSSL version before distro packages are updated<\/li>\n\n\n\n<li>Build with custom compile-time options and settings<\/li>\n\n\n\n<li>Link against the static libcrypto\/libssl libraries rather than shared objects<\/li>\n<\/ul>\n\n\n\n<p>Here are the detailed steps to build and install OpenSSL from source code:<\/p>\n\n\n\n<ul>\n<li>First install the required dependencies:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install build-essential wget<\/code><\/pre>\n\n\n\n<ul>\n<li>Go to the&nbsp;<a href=\"https:\/\/www.openssl.org\/source\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenSSL download page<\/a>&nbsp;and find the latest 1.1.x source tarball. Copy the URL to the&nbsp;<code>.tar.gz<\/code>&nbsp;file. For example&nbsp;<strong><a href=\"https:\/\/www.openssl.org\/source\/openssl-1.1.1w.tar.gz\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.openssl.org\/source\/openssl-1.1.1w.tar.gz<\/a><\/strong><\/li>\n\n\n\n<li>Use&nbsp;<code>wget<\/code>&nbsp;to download the source tarball (adjust version as needed):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ wget https:\/\/www.openssl.org\/source\/openssl-1.1.1w.tar.gz<\/code><\/pre>\n\n\n\n<ul>\n<li>Verify the download checksum matches the one on the website. This ensures the download is not corrupted:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sha256sum openssl-1.1.1w.tar.gz<\/code><\/pre>\n\n\n\n<ul>\n<li>Extract the source archive:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ tar xvzf openssl-1.1.1w.tar.gz<\/code><\/pre>\n\n\n\n<ul>\n<li>Change into the extracted source directory:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ cd openssl-1.1.1w<\/code><\/pre>\n\n\n\n<ul>\n<li>Configure the build settings. As a basic example:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ .\/config<\/code><\/pre>\n\n\n\n<ul>\n<li>For custom settings, see&nbsp;<code>.\/config --help<\/code>. Important options include:\n<ul>\n<li><code>--prefix<\/code>&nbsp;to set install location (default is \/usr\/local)<\/li>\n\n\n\n<li><code>--openssldir<\/code>&nbsp;to set SSL directory location<\/li>\n\n\n\n<li>static or shared libraries<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Build the package:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ make<\/code><\/pre>\n\n\n\n<ul>\n<li>Run tests (optional but recommended):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ make test<\/code><\/pre>\n\n\n\n<ul>\n<li>Install OpenSSL:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo make install<\/code><\/pre>\n\n\n\n<p>By default this will install to \/usr\/local\/bin, \/usr\/local\/lib etc. Use&nbsp;<code>--prefix<\/code>&nbsp;option to customize.<\/p>\n\n\n\n<ul>\n<li>Verify installation folder contains the openssl libraries and binaries.<\/li>\n<\/ul>\n\n\n\n<p>That covers the basic process of compiling and installing OpenSSL from source code. You can also read the official&nbsp;<a href=\"https:\/\/github.com\/openssl\/openssl\/blob\/master\/README.md\" target=\"_blank\" rel=\"noreferrer noopener\">README<\/a>&nbsp;for more details.<\/p>\n\n\n\n<p>Next, let&#8217;s verify OpenSSL was installed correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"verifying-the-openssl-installation\">Verifying the OpenSSL Installation<\/h2>\n\n\n\n<p>After installing OpenSSL using either apt or compiling from source, verify everything is working correctly:<\/p>\n\n\n\n<ul>\n<li>Run&nbsp;<code>openssl version<\/code>&nbsp;and check the output shows the expected version<\/li>\n\n\n\n<li>Try running common commands like:\n<ul>\n<li><code>openssl genrsa<\/code>&nbsp;&#8211; generate an RSA private key<\/li>\n\n\n\n<li><code>openssl req<\/code>&nbsp;&#8211; generate a certificate signing request<\/li>\n\n\n\n<li><code>openssl x509<\/code>&nbsp;&#8211; examine\/create certificates<\/li>\n\n\n\n<li><code>openssl pkey<\/code>&nbsp;&#8211; examine public or private key files<\/li>\n\n\n\n<li><code>openssl enc<\/code>&nbsp;&#8211; symmetric cipher encryption\/decryption<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Look for the openssl libraries and binaries in the expected install locations:\n<ul>\n<li><code>\/usr\/lib\/x86_64-linux-gnu\/<\/code>&nbsp;&#8211; shared libraries<\/li>\n\n\n\n<li><code>\/usr\/local\/lib<\/code>&nbsp;&#8211; static libraries if built from source<\/li>\n\n\n\n<li><code>\/usr\/bin<\/code>&nbsp;or&nbsp;<code>\/usr\/local\/bin<\/code>&nbsp;&#8211; executables<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If linking to shared libs, ensure your $LD_LIBRARY_PATH includes the OpenSSL lib directory.<\/li>\n\n\n\n<li>Try using&nbsp;<code>openssl<\/code>&nbsp;commands in test applications to confirm cryptography and SSL\/TLS features work as expected.<\/li>\n<\/ul>\n\n\n\n<p>If the basic commands function and libraries\/bins are found in the right install locations, your OpenSSL setup should be good to go!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"troubleshooting-openssl-installation-issues\">Troubleshooting OpenSSL installation issues<\/h2>\n\n\n\n<p>Here are some common issues and fixes when installing OpenSSL:<\/p>\n\n\n\n<p><strong>No shared libs found<\/strong><\/p>\n\n\n\n<p>If apps complain about missing&nbsp;<code>libssl<\/code>\/<code>libcrypto<\/code>&nbsp;shared libs, either update $LD_LIBRARY_PATH to contain the OpenSSL lib dir, or make sure you installed the&nbsp;<code>-devel<\/code>&nbsp;apt package that contains the .so shared objects. Or rebuild from source without&nbsp;<code>--static<\/code>&nbsp;option.<\/p>\n\n\n\n<p><strong>Compiler errors building from source<\/strong><\/p>\n\n\n\n<p>Ensure you have the required build tools like gcc and make installed. Double check any custom configure options that may be causing issues.<\/p>\n\n\n\n<p><strong>Command not found errors<\/strong><\/p>\n\n\n\n<p>If openssl command isn&#8217;t available after install, make sure \/usr\/local\/bin or the configured install&nbsp;<code>--prefix<\/code>&nbsp;location is in your $PATH env variable.<\/p>\n\n\n\n<p><strong>SSL apps can&#8217;t find cert\/key files<\/strong><\/p>\n\n\n\n<p>Update the&nbsp;<code>OPENSSL_CONF<\/code>&nbsp;system variable or app config to point to the correct OpenSSL config directory location, usually \/usr\/lib\/ssl or \/etc\/ssl.<\/p>\n\n\n\n<p><strong>App fails protocol handshake or encryption<\/strong><\/p>\n\n\n\n<p>Your app may be linked against a different OpenSSL version than expected. Double check library linkages and versions being used.<\/p>\n\n\n\n<p><strong>Warnings about insecure default config<\/strong><\/p>\n\n\n\n<p>Edit the openssl.cnf file to update default settings per recommendations. Or provide app configs to override.<\/p>\n\n\n\n<p><strong>Make sure you fully uninstall\/remove old OpenSSL versions to avoid conflicts or confusion.<\/strong><\/p>\n\n\n\n<p>In most cases, installation issues can be resolved by double checking locations of libs, bins and config files. Refer to the official OpenSSL documentation for additional troubleshooting tips.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>That concludes this comprehensive guide to installing OpenSSL on Ubuntu systems! We covered installation using both the apt package manager as well as building and compiling from latest source releases. You should also now understand the basics of how OpenSSL works and what cryptographic functions it provides.<\/p>\n\n\n\n<p>To summarize, you should now be able to:<\/p>\n\n\n\n<ul>\n<li>Install the latest OpenSSL versions on Ubuntu<\/li>\n\n\n\n<li>Build OpenSSL from source for custom configurations<\/li>\n\n\n\n<li>Verify OpenSSL installed and working properly<\/li>\n\n\n\n<li>Identify and troubleshoot any installation issues<\/li>\n\n\n\n<li>Understand the basics of OpenSSL and why it&#8217;s important for security<\/li>\n<\/ul>\n\n\n\n<p>OpenSSL powers countless security systems and cryptographic applications, so it&#8217;s an essential tool for any Linux and Ubuntu user to have available. I hope this guide has equipped you with all the knowledge needed to install and use it for your projects and needs. Let us know if you have any other questions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction OpenSSL is an open-source toolkit that implements the Secure Sockets Layer (SSL v2\/v3) and Transport Layer Security (TLS v1) protocols, as well as a full-strength general purpose cryptography library. It is used to provide cryptographic functions and secure communications capabilities in many software packages and applications. In this comprehensive guide, we will walk through ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,3],"tags":[],"yoast_head":"\n<title>How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-04T08:04:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-04T08:04:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to Install OpenSSL on Ubuntu Linux\",\"datePublished\":\"2023-10-04T08:04:10+00:00\",\"dateModified\":\"2023-10-04T08:04:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\"},\"wordCount\":1587,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\",\"name\":\"How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-10-04T08:04:10+00:00\",\"dateModified\":\"2023-10-04T08:04:11+00:00\",\"description\":\"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install OpenSSL on Ubuntu Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations","description":"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations","og_description":"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.","og_url":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-10-04T08:04:10+00:00","article_modified_time":"2023-10-04T08:04:11+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/10\/openssl_ubuntu_install_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to Install OpenSSL on Ubuntu Linux","datePublished":"2023-10-04T08:04:10+00:00","dateModified":"2023-10-04T08:04:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/"},"wordCount":1587,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/","url":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/","name":"How to Install OpenSSL on Ubuntu Linux - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-10-04T08:04:10+00:00","dateModified":"2023-10-04T08:04:11+00:00","description":"A complete guide to install OpenSSL on Ubuntu Linux including using apt, compiling from source, verifying the installation, and troubleshooting tips. Covers OpenSSL basics and uses.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/how-to-install-openssl-on-ubuntu-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to Install OpenSSL on Ubuntu Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781819544","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6905"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=6905"}],"version-history":[{"count":6,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6905\/revisions"}],"predecessor-version":[{"id":6928,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6905\/revisions\/6928"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=6905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=6905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=6905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}