Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to install OpenSSL from source?

  1. #1
    Join Date
    Jan 2009
    Location
    Slovenia
    Beans
    38
    Distro
    Ubuntu 10.04 Lucid Lynx

    How to install OpenSSL from source?

    Hi!
    I saw, there is a new OpenSSL v 1.0.0 and I wanna ask how to install it.
    I have this server now Apache/2.2.14 (Ubuntu) PHP/5.2.10-2ubuntu6.4 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k

    And I try to install by reading the Install file in the package but I still have 0.9.8k.
    $ ./config
    $ make
    $ make test
    $ make install

    Did I forgot something?
    Ubuntu 10.04 Desktop Server
    GigaByte GA P43-ES3G | Pentium D 805@ 2.66Ghz | 2x1GB Kingston Hynix DDR2 1066 | Nvidia 8600GTS | Lc Power 6550GP v2.0

  2. #2
    Join Date
    Jan 2009
    Location
    Slovenia
    Beans
    38
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to install OpenSSL from source?

    So, no idea?
    Ubuntu 10.04 Desktop Server
    GigaByte GA P43-ES3G | Pentium D 805@ 2.66Ghz | 2x1GB Kingston Hynix DDR2 1066 | Nvidia 8600GTS | Lc Power 6550GP v2.0

  3. #3
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to install OpenSSL from source?

    Latest and greatest isn't always the best. You won't have package management if you install it this way. The included version works just fine for me, maybe you want to reconsider?

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  4. #4
    Join Date
    Nov 2009
    Beans
    2

    Re: How to install OpenSSL from source?

    If you absolutely need the latest version of openssl then here's how to go about installing it. You're going to have to remove openssl & libssl-dev first and this might force other packages to be removed. So don't do this unless you know what you're doing and pay attention to what's happening.

    Also this can and will cause problems with postfix and the ssl-cert packages so if you need those packages then don't do this.

    First remove the currently installed version of openssl completely
    Code:
    sudo aptitude remove openssl libssl-dev
    Now compile & install a new copy of openssl from source
    Code:
    cd
    wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz
    tar -xvzf openssl-1.0.0a.tar.gz
    cd openssl-1.0.0a/
    ./config --prefix=/usr
    sudo make
    sudo checkinstall
    Last edited by drewjw81; June 3rd, 2010 at 11:16 AM.

  5. #5
    Join Date
    Sep 2010
    Beans
    1

    Re: How to install OpenSSL from source?

    I followed the instruction from drewjw81, except that I installed openssl-1.0.0a at /usr/local/ssl. When I tested with "openssl version", I got openssl-1.0.0a and applied some system update after that but after restarting the system, I got back 0.9.8k
    I removed the 0.9.8k and tried reinstalling 1.0.0a but after the whole process was completed, on typing 'openssl version', I got;

    prom@Host1:~$ openssl version
    The program 'openssl' is currently not installed. You can install it by typing:
    sudo apt-get install openssl
    prom@Host1:~$

    Even 'sudo apt-get install openssl' reinstalled 0.9.8.k. Could anyone tell me how to really get 1.0.0a working in Ubuntu 10.0 as well as how to apply patch for 1.0.0a

    Thanking you in advance.

  6. #6
    Join Date
    Feb 2005
    Location
    Boulder CO
    Beans
    44

    Re: How to install OpenSSL from source?

    It seems that you got it to build and run fine from source the first time, and ran into some problem the second time you tried that. So try again.

    More details for linking against it are here: http://stackoverflow.com/questions/3...-0-0-on-ubuntu

    Note that any time you use apt-get or other Ubuntu package management commands to install it, you're going to get the Ubuntu version 0.9.8.k. Based on the stackexchange answer that should be ok (and probably keeps the other Ubuntu dependencies happy).
    Last edited by nealmcb; December 22nd, 2010 at 07:40 AM.

  7. #7
    Join Date
    Jul 2007
    Beans
    21

    Re: How to install OpenSSL from source?

    according to this security announcement from OpenSSL:
    http://www.openssl.org/news/secadv_20120419.txt

    Users should now be running at least version 1.0.1a for security reasons. So... How do we get this thing repackaged into the LTS Lucid repositories?

  8. #8
    Join Date
    Aug 2011
    Location
    /dev/null
    Beans
    96
    Distro
    Ubuntu

    Re: How to install OpenSSL from source?

    It won't get repackaged.

    If you don't want to install from source, you can get the packages of Natty or Oneiric by manual download from packages.ubuntu.com (as well as their dependencies) and install them manually by using dpkg.

  9. #9
    Join Date
    Jul 2007
    Beans
    21

    Re: How to install OpenSSL from source?

    I thought repackaging binaries to fix security issues was sort of the entire point of "LTS"...

  10. #10
    Join Date
    Apr 2012
    Beans
    1

    Re: How to install OpenSSL from source?

    Quote Originally Posted by Todamont View Post
    I thought repackaging binaries to fix security issues was sort of the entire point of "LTS"...
    this. I cant believe that a critical(!) vulnerability in one of the core packages of every server would go unpatched leaving tons of servers vulnerable. not only is this critical, its also urgent because you typically dont have to wait too long to see openssl exploits spread like wildfire...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •