• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and update OpenSSL on Debian 11.3

  • 00:28 lsb_release -a
  • 00:46 openssl version
  • 01:04 wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
  • 01:32 mv openssl-1.1.1q.tar.gz /usr/src/
  • 01:45 cd /usr/src/
  • 01:58 ls -la
  • 02:09 tar xzf openssl-1.1.1q.tar.gz
  • 02:23 cd openssl-1.1q.2o/
  • 02:40 ./config
  • 02:59 make
  • 03:10 make test
  • 03:40 make install
  • 03:59 openssl version
  • 04:20 mv /usr/bin/openssl /root/
  • 04:34 ln -s /usr/local/ssl/bin/openssl
  • 04:58 sudo openssl version
7220

To Install And Update OpenSSL On Debian 11.3

Introduction:

OpenSSL is an open-source implementation of the SSL and TLS protocols that is easy to install and update OpenSSL on an Ubuntu machine, and this tutorial also deals the same.

Installation Procedure:

Step 1: Check the OS version by using the below command.

root@linuxhelp: ~# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Step 2: Before starting the installation of OpenSSL, get the current version of OpenSSL by using the below command.

root@linuxhelp: ~# openssl version
OpenSSL 1.1.1n  15 Mar 2022

Step 3: After that, download the latest version of OpenSSL by deploying the below command.

root@linuxhelp: ~# wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
--2022-09-02 02:11:34--  https://www.openssl.org/source/openssl-1.1.1q.tar.gz
Resolving www.openssl.org (www.openssl.org)... 104.115.65.36, 2600:140f:400:1b4::c1e, 2600:140f:400:1a6::c1e
Connecting to www.openssl.org (www.openssl.org)|104.115.65.36|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9864061 (9.4M) [application/x-gzip]
Saving to: ‘openssl-1.1.1q.tar.gz’
openssl-1.1.1q.tar.gz      100%[=======================================>]   9.41M  4.33MB/s    in 2.2s    


2022-09-02 02:11:38 (4.33 MB/s) - ‘openssl-1.1.1q.tar.gz’ saved [9864061/9864061]

Step 4: Next move it to /usr/src directory by using the below command

root@linuxhelp: ~# mv openssl-1.1.1q.tar.gz  /usr/src/
root@linuxhelp: ~# cd /usr/src/
root@linuxhelp src: ~# ls -la
linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic ndiswrapper-1.60 openssl-1.1.1-latest.tar.gz

Step 5: Once it is downloaded, extract the downloaded OpenSSL tar file by using the below command.

root@linuxhelp src: ~# tar xzf openssl-1.1.1q.tar.gz
root@linuxhelp src: ~# cd openssl-1.1q.2o/

Step 6: To manually compile OpenSSL and install/upgrade OpenSSL, make use of the below command.

root@linuxhelp openssl-1.1.1q #./config
Operating system: x86_64-whatever-linux2
Configuring for linux-x86_64
Configuring for linux-x86_64
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-libunbound   [experimental] OPENSSL_NO_LIBUNBOUND (skip dir)
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)


    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared       [default] 
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE (skip dir)
    no-ssl2         [default]  OPENSSL_NO_SSL2 (skip dir)
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir)
    no-zlib         [default] 
    no-zlib-dynamic [default]
.
.
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/test' 
md2test.c =>  dummytest.c
rc5test.c =>  dummytest.c
jpaketest.c =>  dummytest.c
make[1]: Leaving directory ' /usr/src/openssl-1.0.2o/test

Step 7: After it is done, prepare the installation of OpenSSL by running the make command.

root@linuxhelp openssl-1.1.1q # make
making all in crypto...
make[1]: Entering directory ' /usr/src/openssl-1.1q2o/crypto' 
/usr/bin/perl ../util/mkbuildinf.pl " gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM"  " linux-x86_64"  > buildinf.h

.
.
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o/test' 
make[1]: Leaving directory ' /usr/src/openssl-1.0.2o/test' 
making all in tools...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/tools' 
make[1]: Nothing to be done for ' all' .
make[1]: Leaving directory ' /usr/src/openssl-1.0.2o/tools' 

Step 8: After it, run the make test command as follows.

root@linuxhelp openssl-1.1.1q # make test
testing...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/test' 
make[2]: Entering directory ' /usr/src/openssl-1.0.2o' 
making all in apps...
make[3]: Entering directory ' /usr/src/openssl-1.0.2o/apps' 
make[3]: Nothing to be done for ' all' .
make[3]: Leaving directory ' /usr/src/openssl-1.0.2o/apps' 
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o' 
../util/shlib_wrap.sh ./destest
Doing cbcm

Step 9: Once the command is executed, run the make install command which triggers the installation process.

linuxhelp openssl-1.1.1q # make install 
making all in crypto...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/crypto' 
making all in crypto/objects...

make[2]: Entering directory ' /usr/src/openssl-1.0.2o/crypto/objects' 
make[2]: Nothing to be done for ' all' .
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o/crypto/objects' 
making all in crypto/md4...
make[2]: Entering directory ' /usr/src/openssl-1.0.2o/crypto/md4' 
make[2]: Nothing to be done for ' all' .
.
cp libcrypto.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libcrypto.pc
cp libssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libssl.pc
cp openssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/openssl. pc

Step 10: Let' s check the version now.

linuxhelp openssl-1.1.1q # openssl version
OpenSSL 1.1.1q 15 Mar 2022

Step 11: If the old version is still displayed or installed before, please make a copy of OpenSSL bin file.

root@linuxhelp openssl-1.1.1q # mv /usr/bin/openssl /root/
root@linuxhelp openssl-1.1.1q # ln -s /usr/local/ssl/bin/openssl

Step 12: Now verify the OpenSSL version.

linuxhelp openssl-1.1q.2o # sudo openssl version
OpenSSL 1.1.1q 5 jul 2022 (Library OpenSSL 1.1.1n 15 mar 2022)

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install and update openssl on Debian 11.3. Your feedback is much welcome.

Tags:
jackson
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to check the version of OpenSSL in Debian?

A

use the following command to check the version of OpenSSL openssl version

Q

What is the purpose of installing OpenSSL on Debian?

A

OpenSSL is an open-source implementation of the SSL and TLS protocols. It is so simple to install and update OpenSSL on a Debian machine

Q

Is OpenSSL free to use?

A

OpenSSL is licensed under Apache and free to get and use.

Q

Where to download the latest version of OpenSSL?

A

download the latest version of OpenSSL by the below link wget https://www.openssl.org/source/openssl-1.1.1-latest.tar.gz

Q

What are the prerequisites to installing OpenSSL?

A

GCC compiler is the prerequisite to installing OpenSSL.

Related Tutorials in How to install and update OpenSSL on Debian 11.3

Related Tutorials in How to install and update OpenSSL on Debian 11.3

How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to Install and Update OpenSSL on CentOS 6 / CentOS 7
How to Install and Update OpenSSL on CentOS 6 / CentOS 7
Mar 11, 2017
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How To Install And Update OpenSSL On Linuxmint 18.3
How To Install And Update OpenSSL On Linuxmint 18.3
Jun 8, 2018
How to Install and update openssl on opensuse15.1
How to Install and update openssl on opensuse15.1
Nov 15, 2019
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022

Related Forums in How to install and update OpenSSL on Debian 11.3

Related Forums in How to install and update OpenSSL on Debian 11.3

Linux
jayce class=
shasum command not found
May 5, 2017
Linux
stephan class=
How to list all samba users
Jan 12, 2018
pv command
muhammad class=
pvcreate command not found error
May 9, 2017
Linux
henry class=
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Apr 25, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Linux
baseer class=
single command to apply setfacl for multiple user at a time
Jan 23, 2018
Linux
beulah class=
What does mean by 0 0 value in fstab file
Jan 2, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018

Related News in How to install and update OpenSSL on Debian 11.3

Related News in How to install and update OpenSSL on Debian 11.3

Anbox, the Android-to-Linux tool the developers have been waiting for
Anbox, the Android-to-Linux tool the developers have been waiting for
Apr 17, 2017
Linus Torvalds stops signing Linux kernel RC tarballs
Linus Torvalds stops signing Linux kernel RC tarballs
May 17, 2017
Capsule8 Launches Linux-Based Container Security Platform
Capsule8 Launches Linux-Based Container Security Platform
Feb 14, 2017
Symantec updates Management console product
Symantec updates Management console product
Nov 22, 2017
Latest Linux driver release feature seven AMD Vega
Latest Linux driver release feature seven AMD Vega
Mar 23, 2017
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Microsoft makes its Azure App service now available on Linux Systems
Microsoft makes its Azure App service now available on Linux Systems
Sep 7, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.