How to install OpenSSL 1.1.1 and libSSL package?How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04?OpenSSL remains vulnerable after update to 14.04opensslconf.h not foundHow to install a specific version of opensslCan't install python-pipHow do I upgrade Ubuntu 14.0.4 to use a version of openssl that does not use sslv3?Install libmotif-2.3.4-10 on Ubuntu18.04How to properly downgrade openssl version under Ubuntu 18.04Ubuntu 18.04 system broken after uninstalling opensslwhat is dependencies, build, installing about apt ? (intalling xrandr-invert-colors)How to clean my OpenSSL installation

When were female captains banned from Starfleet?

Quoting Keynes in a lecture

Unexpected behavior of the procedure `Area` on the object 'Polygon'

Store Credit Card Information in Password Manager?

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

Temporarily disable WLAN internet access for children, but allow it for adults

Can disgust be a key component of horror?

How do you make your own symbol when Detexify fails?

Can I still be respawned if I die by falling off the map?

I'm the sea and the sun

15% tax on $7.5k earnings. Is that right?

Why does the Sun have different day lengths, but not the gas giants?

Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?

Can I say "fingers" when referring to toes?

How to hide some fields of struct in C?

Plot of a tornado-shaped surface

Mixing PEX brands

Mimic lecturing on blackboard, facing audience

Why is the "ls" command showing permissions of files in a FAT32 partition?

How does the math work for Perception checks?

Picking the different solutions to the time independent Schrodinger eqaution

Is aluminum electrical wire used on aircraft?

Why is it that I can sometimes guess the next note?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?



How to install OpenSSL 1.1.1 and libSSL package?


How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04?OpenSSL remains vulnerable after update to 14.04opensslconf.h not foundHow to install a specific version of opensslCan't install python-pipHow do I upgrade Ubuntu 14.0.4 to use a version of openssl that does not use sslv3?Install libmotif-2.3.4-10 on Ubuntu18.04How to properly downgrade openssl version under Ubuntu 18.04Ubuntu 18.04 system broken after uninstalling opensslwhat is dependencies, build, installing about apt ? (intalling xrandr-invert-colors)How to clean my OpenSSL installation













0















I want to use OpenSSL1.1.1 version for my code development. Currently I am working with Openssl 1.1.0g on Ubuntu 18.04 machine.



If I download the package with the command sudo apt install libssl-dev, then I get OpenSSL 1.1.0g version,



If I download the package with the command sudo apt install libssl1.0-dev, then I get OpenSSL 1.0.2n version,



How do I download the OpenSSL 1.1.0 and libssl package?



Note: I don't want to download OpenSSL package separately and build it externally. I am supposed to download using an Ubuntu package.










share|improve this question









New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

    – Marmayogi
    Mar 19 at 10:54







  • 1





    I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

    – Marmayogi
    Mar 19 at 11:07












  • One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

    – Marmayogi
    Mar 19 at 12:01











  • @Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

    – Siddalinga Swamy
    2 days ago












  • hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

    – tatsu
    15 hours ago















0















I want to use OpenSSL1.1.1 version for my code development. Currently I am working with Openssl 1.1.0g on Ubuntu 18.04 machine.



If I download the package with the command sudo apt install libssl-dev, then I get OpenSSL 1.1.0g version,



If I download the package with the command sudo apt install libssl1.0-dev, then I get OpenSSL 1.0.2n version,



How do I download the OpenSSL 1.1.0 and libssl package?



Note: I don't want to download OpenSSL package separately and build it externally. I am supposed to download using an Ubuntu package.










share|improve this question









New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

    – Marmayogi
    Mar 19 at 10:54







  • 1





    I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

    – Marmayogi
    Mar 19 at 11:07












  • One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

    – Marmayogi
    Mar 19 at 12:01











  • @Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

    – Siddalinga Swamy
    2 days ago












  • hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

    – tatsu
    15 hours ago













0












0








0








I want to use OpenSSL1.1.1 version for my code development. Currently I am working with Openssl 1.1.0g on Ubuntu 18.04 machine.



If I download the package with the command sudo apt install libssl-dev, then I get OpenSSL 1.1.0g version,



If I download the package with the command sudo apt install libssl1.0-dev, then I get OpenSSL 1.0.2n version,



How do I download the OpenSSL 1.1.0 and libssl package?



Note: I don't want to download OpenSSL package separately and build it externally. I am supposed to download using an Ubuntu package.










share|improve this question









New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I want to use OpenSSL1.1.1 version for my code development. Currently I am working with Openssl 1.1.0g on Ubuntu 18.04 machine.



If I download the package with the command sudo apt install libssl-dev, then I get OpenSSL 1.1.0g version,



If I download the package with the command sudo apt install libssl1.0-dev, then I get OpenSSL 1.0.2n version,



How do I download the OpenSSL 1.1.0 and libssl package?



Note: I don't want to download OpenSSL package separately and build it externally. I am supposed to download using an Ubuntu package.







18.04 openssl






share|improve this question









New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 10 mins ago









Kevin Bowen

14.7k155970




14.7k155970






New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 19 at 10:22









Siddalinga SwamySiddalinga Swamy

6




6




New contributor




Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Siddalinga Swamy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

    – Marmayogi
    Mar 19 at 10:54







  • 1





    I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

    – Marmayogi
    Mar 19 at 11:07












  • One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

    – Marmayogi
    Mar 19 at 12:01











  • @Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

    – Siddalinga Swamy
    2 days ago












  • hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

    – tatsu
    15 hours ago












  • 1





    Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

    – Marmayogi
    Mar 19 at 10:54







  • 1





    I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

    – Marmayogi
    Mar 19 at 11:07












  • One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

    – Marmayogi
    Mar 19 at 12:01











  • @Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

    – Siddalinga Swamy
    2 days ago












  • hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

    – tatsu
    15 hours ago







1




1





Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

– Marmayogi
Mar 19 at 10:54






Openssl 1.1.1-1ubuntu1 source package in Ubuntu has tar file openssl_1.1.1.orig.tar.gz of size 8.0 Mib, using which you can install Openssl_1.1.1. You try this @Siddalinga Swamy and let me know the result.

– Marmayogi
Mar 19 at 10:54





1




1





I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

– Marmayogi
Mar 19 at 11:07






I hope @Siddalinga Swamy, you know to how to untar a tar file. However here is the sample extract command: $ sudo tar xfvz openssl_1.1.1.orig.tar.gz --directory /opt/openssl. I assumed that you are going to extract tar file into /opt/openssl/ directory. Good luck!

– Marmayogi
Mar 19 at 11:07














One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

– Marmayogi
Mar 19 at 12:01





One more point @Siddalinga Swamy. If you want to reach me, then address me as @Marmayogi

– Marmayogi
Mar 19 at 12:01













@Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

– Siddalinga Swamy
2 days ago






@Marmayogi, Hi Thanks for your answer. The way you suggested is installing openssl1.1.1 externally. But i want download package from ubuntu through commands directly, i dont want build it externally. Also i want libssl package for openssl 1.1.1 version. For example, sudo apt install libssl-dev will install openssl1.1.0g in Ubunutu 18.04. Similarly i want openssl1.1.1

– Siddalinga Swamy
2 days ago














hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

– tatsu
15 hours ago





hi. @SiddalingaSwamy above in the launchpad link Marmayogi helpfully gave, you can see that it is a release for "cosmic" AKA : ubuntu 18.10. which is a non-LTS release but definitely not a beta. it is much more stable than 18.04 and what many ubuntu users including myself prefer. would you consider switching to ubuntu 18.10? in that case sudo apt install libssl would work. Also keep in mind 18.10 is basically just ubuntu 19.04 and ubuntu 19.04 is right around the corner. If you wait a couple more days you can upgrade to that and the same will work.

– tatsu
15 hours ago










1 Answer
1






active

oldest

votes


















2














In fact your question was duplicate and the same question already appeared in Upgrade openssl 1.1.0 to 1.1.1 in Ubuntu 18.04.



As already answered by @Kevin Bowen, openssl 1.1.1 is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.



The same thing I too suggested in the beginning in comments section. My favorite is always to install in /opt, so I suggested that too in comments section.



If you don't want to do, then you will be stuck for ever!




Guide to install openssl 1.1.1b on Ubuntu 18.04.




Step 1 : Download openssl 1.1.1b



Download the latest openssl 1.1.1b release from from Ubuntu source package….



OpenSSL Cryptography and SSL/TLS Toolkit



enter image description hereFigure-1: Download openssl 1.1.1b



You can also easily install openssl 1.1.1b package by running the commands below…



wget
https://www.openssl.org/source/openssl-1.1.1b.tar.gz



Step 2 : Install Openssl from the tar.gb package



Now create /opt/openssl directory:



$ sudo mkdir /opt/openssl
enter image description hereFigure-2: Create folder for openssl under /opt directory.



Now that you’ve downloaded the correct archive package for your system into ~/Downloads folder, run the following commands to install Openssl.



$ sudo tar xfvz ~/Downloads/openssl-1.1.1b.tar.gz --directory /opt/openssl


enter image description hereFigure-3: Extraction into /opt/openssl is complete.



$ perl --version
enter image description hereFigure-4: Perl version.



Export LD_LIBRARY_PATH environment variable with the following value:



$ export LD_LIBRARY_PATH=/opt/openssl/lib


Verify that LD_LIBRARY_PATH is set with correct value by this command:



$ echo $LD_LIBRARY_PATH


enter image description hereFigure-5: Value of environment variable LD_LIBRARY_PATH is /opt/openssl/lib.



Issue the config commands:



 $ cd /opt/openssl/openssl-1.1.1b
$ sudo ./config –prefix=/opt/openssl –openssldir=/opt/openssl/ssl


enter image description hereFigure-6: config command



Next, issue make command:



$ sudo make



Issue make test command to check for possible errors:



$ sudo make test



enter image description hereFigure-7: All tests successful.



Issue make install commands:



$ sudo make install



Where is openssl binary being located?



Issue the following commands:



$ sudo updatedb # rebuild library cache
$ locate openssl | grep /opt/openssl/bin


enter image description hereFigure-8: Locate openssl binary.



The directory /usr/bin has openssl binary which is an earler version. The presence of this unwanted openssl binary /usr/bin/openssl is going to cause us trouble, so we have to check this!



Issue the following commands in order to tackle /usr/bin/openssl binary:



$ cd /usr/bin
$ ls -l openssl
$ sudo mv openssl openssl.old # rename earlier version openssl to openssl.old


enter image description hereFigure-9: Rename earlier version of openssl binary to openssl.old.



Step 3 : Setup PATH environment variable



Openssl needs to set PATH environment variables which is to be set as shown below.



Create a file called openssl.sh under /etc/profile.d/ directory.



$ sudo touch /etc/profile.d/openssl.sh
$ sudo vi /etc/profile.d/openssl.sh


Add the following contents:



#!/bin/sh
export PATH=/opt/openssl/bin:$PATH


Save and close the file. Make it executable using the following command.



$ sudo chmod +x /etc/profile.d/openssl.sh


Then, set the environment variables permanently by running the following command:



 $ source /etc/profile.d/openssl.sh


Log out or reboot your system.



Now, check the openssl version using command:



$ openssl version



enter image description hereFigure-10: openssl binary version.



Now, check the PATH environment variable:



$ echo $PATH



enter image description hereFigure-11: PATH envirnement variable having /opt/openssl/bin directory



Summary:



This method downloads, extracts, compiles, and installs the latest OpenSSL version 1.1.1b manually.






share|improve this answer

























  • well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

    – tatsu
    15 hours ago






  • 1





    Thank you @tatsu for pointing out version error. This has been corrected.

    – Marmayogi
    10 hours ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Siddalinga Swamy is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126893%2fhow-to-install-openssl-1-1-1-and-libssl-package%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














In fact your question was duplicate and the same question already appeared in Upgrade openssl 1.1.0 to 1.1.1 in Ubuntu 18.04.



As already answered by @Kevin Bowen, openssl 1.1.1 is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.



The same thing I too suggested in the beginning in comments section. My favorite is always to install in /opt, so I suggested that too in comments section.



If you don't want to do, then you will be stuck for ever!




Guide to install openssl 1.1.1b on Ubuntu 18.04.




Step 1 : Download openssl 1.1.1b



Download the latest openssl 1.1.1b release from from Ubuntu source package….



OpenSSL Cryptography and SSL/TLS Toolkit



enter image description hereFigure-1: Download openssl 1.1.1b



You can also easily install openssl 1.1.1b package by running the commands below…



wget
https://www.openssl.org/source/openssl-1.1.1b.tar.gz



Step 2 : Install Openssl from the tar.gb package



Now create /opt/openssl directory:



$ sudo mkdir /opt/openssl
enter image description hereFigure-2: Create folder for openssl under /opt directory.



Now that you’ve downloaded the correct archive package for your system into ~/Downloads folder, run the following commands to install Openssl.



$ sudo tar xfvz ~/Downloads/openssl-1.1.1b.tar.gz --directory /opt/openssl


enter image description hereFigure-3: Extraction into /opt/openssl is complete.



$ perl --version
enter image description hereFigure-4: Perl version.



Export LD_LIBRARY_PATH environment variable with the following value:



$ export LD_LIBRARY_PATH=/opt/openssl/lib


Verify that LD_LIBRARY_PATH is set with correct value by this command:



$ echo $LD_LIBRARY_PATH


enter image description hereFigure-5: Value of environment variable LD_LIBRARY_PATH is /opt/openssl/lib.



Issue the config commands:



 $ cd /opt/openssl/openssl-1.1.1b
$ sudo ./config –prefix=/opt/openssl –openssldir=/opt/openssl/ssl


enter image description hereFigure-6: config command



Next, issue make command:



$ sudo make



Issue make test command to check for possible errors:



$ sudo make test



enter image description hereFigure-7: All tests successful.



Issue make install commands:



$ sudo make install



Where is openssl binary being located?



Issue the following commands:



$ sudo updatedb # rebuild library cache
$ locate openssl | grep /opt/openssl/bin


enter image description hereFigure-8: Locate openssl binary.



The directory /usr/bin has openssl binary which is an earler version. The presence of this unwanted openssl binary /usr/bin/openssl is going to cause us trouble, so we have to check this!



Issue the following commands in order to tackle /usr/bin/openssl binary:



$ cd /usr/bin
$ ls -l openssl
$ sudo mv openssl openssl.old # rename earlier version openssl to openssl.old


enter image description hereFigure-9: Rename earlier version of openssl binary to openssl.old.



Step 3 : Setup PATH environment variable



Openssl needs to set PATH environment variables which is to be set as shown below.



Create a file called openssl.sh under /etc/profile.d/ directory.



$ sudo touch /etc/profile.d/openssl.sh
$ sudo vi /etc/profile.d/openssl.sh


Add the following contents:



#!/bin/sh
export PATH=/opt/openssl/bin:$PATH


Save and close the file. Make it executable using the following command.



$ sudo chmod +x /etc/profile.d/openssl.sh


Then, set the environment variables permanently by running the following command:



 $ source /etc/profile.d/openssl.sh


Log out or reboot your system.



Now, check the openssl version using command:



$ openssl version



enter image description hereFigure-10: openssl binary version.



Now, check the PATH environment variable:



$ echo $PATH



enter image description hereFigure-11: PATH envirnement variable having /opt/openssl/bin directory



Summary:



This method downloads, extracts, compiles, and installs the latest OpenSSL version 1.1.1b manually.






share|improve this answer

























  • well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

    – tatsu
    15 hours ago






  • 1





    Thank you @tatsu for pointing out version error. This has been corrected.

    – Marmayogi
    10 hours ago
















2














In fact your question was duplicate and the same question already appeared in Upgrade openssl 1.1.0 to 1.1.1 in Ubuntu 18.04.



As already answered by @Kevin Bowen, openssl 1.1.1 is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.



The same thing I too suggested in the beginning in comments section. My favorite is always to install in /opt, so I suggested that too in comments section.



If you don't want to do, then you will be stuck for ever!




Guide to install openssl 1.1.1b on Ubuntu 18.04.




Step 1 : Download openssl 1.1.1b



Download the latest openssl 1.1.1b release from from Ubuntu source package….



OpenSSL Cryptography and SSL/TLS Toolkit



enter image description hereFigure-1: Download openssl 1.1.1b



You can also easily install openssl 1.1.1b package by running the commands below…



wget
https://www.openssl.org/source/openssl-1.1.1b.tar.gz



Step 2 : Install Openssl from the tar.gb package



Now create /opt/openssl directory:



$ sudo mkdir /opt/openssl
enter image description hereFigure-2: Create folder for openssl under /opt directory.



Now that you’ve downloaded the correct archive package for your system into ~/Downloads folder, run the following commands to install Openssl.



$ sudo tar xfvz ~/Downloads/openssl-1.1.1b.tar.gz --directory /opt/openssl


enter image description hereFigure-3: Extraction into /opt/openssl is complete.



$ perl --version
enter image description hereFigure-4: Perl version.



Export LD_LIBRARY_PATH environment variable with the following value:



$ export LD_LIBRARY_PATH=/opt/openssl/lib


Verify that LD_LIBRARY_PATH is set with correct value by this command:



$ echo $LD_LIBRARY_PATH


enter image description hereFigure-5: Value of environment variable LD_LIBRARY_PATH is /opt/openssl/lib.



Issue the config commands:



 $ cd /opt/openssl/openssl-1.1.1b
$ sudo ./config –prefix=/opt/openssl –openssldir=/opt/openssl/ssl


enter image description hereFigure-6: config command



Next, issue make command:



$ sudo make



Issue make test command to check for possible errors:



$ sudo make test



enter image description hereFigure-7: All tests successful.



Issue make install commands:



$ sudo make install



Where is openssl binary being located?



Issue the following commands:



$ sudo updatedb # rebuild library cache
$ locate openssl | grep /opt/openssl/bin


enter image description hereFigure-8: Locate openssl binary.



The directory /usr/bin has openssl binary which is an earler version. The presence of this unwanted openssl binary /usr/bin/openssl is going to cause us trouble, so we have to check this!



Issue the following commands in order to tackle /usr/bin/openssl binary:



$ cd /usr/bin
$ ls -l openssl
$ sudo mv openssl openssl.old # rename earlier version openssl to openssl.old


enter image description hereFigure-9: Rename earlier version of openssl binary to openssl.old.



Step 3 : Setup PATH environment variable



Openssl needs to set PATH environment variables which is to be set as shown below.



Create a file called openssl.sh under /etc/profile.d/ directory.



$ sudo touch /etc/profile.d/openssl.sh
$ sudo vi /etc/profile.d/openssl.sh


Add the following contents:



#!/bin/sh
export PATH=/opt/openssl/bin:$PATH


Save and close the file. Make it executable using the following command.



$ sudo chmod +x /etc/profile.d/openssl.sh


Then, set the environment variables permanently by running the following command:



 $ source /etc/profile.d/openssl.sh


Log out or reboot your system.



Now, check the openssl version using command:



$ openssl version



enter image description hereFigure-10: openssl binary version.



Now, check the PATH environment variable:



$ echo $PATH



enter image description hereFigure-11: PATH envirnement variable having /opt/openssl/bin directory



Summary:



This method downloads, extracts, compiles, and installs the latest OpenSSL version 1.1.1b manually.






share|improve this answer

























  • well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

    – tatsu
    15 hours ago






  • 1





    Thank you @tatsu for pointing out version error. This has been corrected.

    – Marmayogi
    10 hours ago














2












2








2







In fact your question was duplicate and the same question already appeared in Upgrade openssl 1.1.0 to 1.1.1 in Ubuntu 18.04.



As already answered by @Kevin Bowen, openssl 1.1.1 is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.



The same thing I too suggested in the beginning in comments section. My favorite is always to install in /opt, so I suggested that too in comments section.



If you don't want to do, then you will be stuck for ever!




Guide to install openssl 1.1.1b on Ubuntu 18.04.




Step 1 : Download openssl 1.1.1b



Download the latest openssl 1.1.1b release from from Ubuntu source package….



OpenSSL Cryptography and SSL/TLS Toolkit



enter image description hereFigure-1: Download openssl 1.1.1b



You can also easily install openssl 1.1.1b package by running the commands below…



wget
https://www.openssl.org/source/openssl-1.1.1b.tar.gz



Step 2 : Install Openssl from the tar.gb package



Now create /opt/openssl directory:



$ sudo mkdir /opt/openssl
enter image description hereFigure-2: Create folder for openssl under /opt directory.



Now that you’ve downloaded the correct archive package for your system into ~/Downloads folder, run the following commands to install Openssl.



$ sudo tar xfvz ~/Downloads/openssl-1.1.1b.tar.gz --directory /opt/openssl


enter image description hereFigure-3: Extraction into /opt/openssl is complete.



$ perl --version
enter image description hereFigure-4: Perl version.



Export LD_LIBRARY_PATH environment variable with the following value:



$ export LD_LIBRARY_PATH=/opt/openssl/lib


Verify that LD_LIBRARY_PATH is set with correct value by this command:



$ echo $LD_LIBRARY_PATH


enter image description hereFigure-5: Value of environment variable LD_LIBRARY_PATH is /opt/openssl/lib.



Issue the config commands:



 $ cd /opt/openssl/openssl-1.1.1b
$ sudo ./config –prefix=/opt/openssl –openssldir=/opt/openssl/ssl


enter image description hereFigure-6: config command



Next, issue make command:



$ sudo make



Issue make test command to check for possible errors:



$ sudo make test



enter image description hereFigure-7: All tests successful.



Issue make install commands:



$ sudo make install



Where is openssl binary being located?



Issue the following commands:



$ sudo updatedb # rebuild library cache
$ locate openssl | grep /opt/openssl/bin


enter image description hereFigure-8: Locate openssl binary.



The directory /usr/bin has openssl binary which is an earler version. The presence of this unwanted openssl binary /usr/bin/openssl is going to cause us trouble, so we have to check this!



Issue the following commands in order to tackle /usr/bin/openssl binary:



$ cd /usr/bin
$ ls -l openssl
$ sudo mv openssl openssl.old # rename earlier version openssl to openssl.old


enter image description hereFigure-9: Rename earlier version of openssl binary to openssl.old.



Step 3 : Setup PATH environment variable



Openssl needs to set PATH environment variables which is to be set as shown below.



Create a file called openssl.sh under /etc/profile.d/ directory.



$ sudo touch /etc/profile.d/openssl.sh
$ sudo vi /etc/profile.d/openssl.sh


Add the following contents:



#!/bin/sh
export PATH=/opt/openssl/bin:$PATH


Save and close the file. Make it executable using the following command.



$ sudo chmod +x /etc/profile.d/openssl.sh


Then, set the environment variables permanently by running the following command:



 $ source /etc/profile.d/openssl.sh


Log out or reboot your system.



Now, check the openssl version using command:



$ openssl version



enter image description hereFigure-10: openssl binary version.



Now, check the PATH environment variable:



$ echo $PATH



enter image description hereFigure-11: PATH envirnement variable having /opt/openssl/bin directory



Summary:



This method downloads, extracts, compiles, and installs the latest OpenSSL version 1.1.1b manually.






share|improve this answer















In fact your question was duplicate and the same question already appeared in Upgrade openssl 1.1.0 to 1.1.1 in Ubuntu 18.04.



As already answered by @Kevin Bowen, openssl 1.1.1 is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.



The same thing I too suggested in the beginning in comments section. My favorite is always to install in /opt, so I suggested that too in comments section.



If you don't want to do, then you will be stuck for ever!




Guide to install openssl 1.1.1b on Ubuntu 18.04.




Step 1 : Download openssl 1.1.1b



Download the latest openssl 1.1.1b release from from Ubuntu source package….



OpenSSL Cryptography and SSL/TLS Toolkit



enter image description hereFigure-1: Download openssl 1.1.1b



You can also easily install openssl 1.1.1b package by running the commands below…



wget
https://www.openssl.org/source/openssl-1.1.1b.tar.gz



Step 2 : Install Openssl from the tar.gb package



Now create /opt/openssl directory:



$ sudo mkdir /opt/openssl
enter image description hereFigure-2: Create folder for openssl under /opt directory.



Now that you’ve downloaded the correct archive package for your system into ~/Downloads folder, run the following commands to install Openssl.



$ sudo tar xfvz ~/Downloads/openssl-1.1.1b.tar.gz --directory /opt/openssl


enter image description hereFigure-3: Extraction into /opt/openssl is complete.



$ perl --version
enter image description hereFigure-4: Perl version.



Export LD_LIBRARY_PATH environment variable with the following value:



$ export LD_LIBRARY_PATH=/opt/openssl/lib


Verify that LD_LIBRARY_PATH is set with correct value by this command:



$ echo $LD_LIBRARY_PATH


enter image description hereFigure-5: Value of environment variable LD_LIBRARY_PATH is /opt/openssl/lib.



Issue the config commands:



 $ cd /opt/openssl/openssl-1.1.1b
$ sudo ./config –prefix=/opt/openssl –openssldir=/opt/openssl/ssl


enter image description hereFigure-6: config command



Next, issue make command:



$ sudo make



Issue make test command to check for possible errors:



$ sudo make test



enter image description hereFigure-7: All tests successful.



Issue make install commands:



$ sudo make install



Where is openssl binary being located?



Issue the following commands:



$ sudo updatedb # rebuild library cache
$ locate openssl | grep /opt/openssl/bin


enter image description hereFigure-8: Locate openssl binary.



The directory /usr/bin has openssl binary which is an earler version. The presence of this unwanted openssl binary /usr/bin/openssl is going to cause us trouble, so we have to check this!



Issue the following commands in order to tackle /usr/bin/openssl binary:



$ cd /usr/bin
$ ls -l openssl
$ sudo mv openssl openssl.old # rename earlier version openssl to openssl.old


enter image description hereFigure-9: Rename earlier version of openssl binary to openssl.old.



Step 3 : Setup PATH environment variable



Openssl needs to set PATH environment variables which is to be set as shown below.



Create a file called openssl.sh under /etc/profile.d/ directory.



$ sudo touch /etc/profile.d/openssl.sh
$ sudo vi /etc/profile.d/openssl.sh


Add the following contents:



#!/bin/sh
export PATH=/opt/openssl/bin:$PATH


Save and close the file. Make it executable using the following command.



$ sudo chmod +x /etc/profile.d/openssl.sh


Then, set the environment variables permanently by running the following command:



 $ source /etc/profile.d/openssl.sh


Log out or reboot your system.



Now, check the openssl version using command:



$ openssl version



enter image description hereFigure-10: openssl binary version.



Now, check the PATH environment variable:



$ echo $PATH



enter image description hereFigure-11: PATH envirnement variable having /opt/openssl/bin directory



Summary:



This method downloads, extracts, compiles, and installs the latest OpenSSL version 1.1.1b manually.







share|improve this answer














share|improve this answer



share|improve this answer








edited 11 mins ago

























answered 2 days ago









MarmayogiMarmayogi

59137




59137












  • well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

    – tatsu
    15 hours ago






  • 1





    Thank you @tatsu for pointing out version error. This has been corrected.

    – Marmayogi
    10 hours ago


















  • well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

    – tatsu
    15 hours ago






  • 1





    Thank you @tatsu for pointing out version error. This has been corrected.

    – Marmayogi
    10 hours ago

















well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

– tatsu
15 hours ago





well done! maybe something's up with the linking because of previous apt install, but the last screenshot shows 1.1.0

– tatsu
15 hours ago




1




1





Thank you @tatsu for pointing out version error. This has been corrected.

– Marmayogi
10 hours ago






Thank you @tatsu for pointing out version error. This has been corrected.

– Marmayogi
10 hours ago











Siddalinga Swamy is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Siddalinga Swamy is a new contributor. Be nice, and check out our Code of Conduct.












Siddalinga Swamy is a new contributor. Be nice, and check out our Code of Conduct.











Siddalinga Swamy is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126893%2fhow-to-install-openssl-1-1-1-and-libssl-package%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»