Log in

No account? Create an account

David Rabinovitch - Ум, Честь и Совесть Нашей Эпохи

Пацак с планеты Земля

Previous Entry Share Next Entry
Upgrading OpenSSL and curl on Debian 6 (squeeze)
old muzzy
UPDATE worked on Debian7
sudo apt-get install libz-dev
wget --no-check-certificate https://www.openssl.org/source/openssl-1.1.1c.tar.gz
tar xzf openssl-1.1.1c.tar.gz
cd openssl-1.1.1c/
./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
make install

curl like in old instruction
mkdir curl
cd curl
wget --no-check-certificate https://curl.haxx.se/download/curl-7.65.2.tar.gz.asc

1. OpenSSL
now openssl version
OpenSSL 0.9.8o 01 Jun 2010

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

tar xfz openssl-1.1.1-pre6.tar.gz

cd openssl-1.1.1-pre6/

./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
sudo make install

(from https://mariobrandt.de/archives/linux/upgrading-openssl-on-debian-6-squeeze-or-ubuntu-8-04-hardy-456/)

openssl version
OpenSSL 1.0.1 14 Mar 2012

2. remove old curl
apt-get remove curl

2. curl
now curl --tlsv1 https://tlscheck.wubook.net/
curl: (35) Unknown SSL protocol error in connection to tlscheck.wubook.net:443

download last curl from https://curl.haxx.se/download.html

now it https://curl.haxx.se/download/curl-7.59.0.zip

if wget failed you can get it from
wget http://life.wapil.com/curl.zip

unpack it

unzip curl*.zip
cd curl-*

very important!!!!!!!

./configure --disable-shared
make install

ln -s /usr/local/bin/curl /usr/bin/curl

curl --tlsv1 https://tlscheck.wubook.net/
You are using:TLSv1.2/ECDHE-RSA-AES256-GCM-SHA384

PHP Version 5.3.3-7+squeeze19 stays in old version
Curl support enabled
SSL Version OpenSSL/0.9.8o

  • 1

Very helpful. Worked on Debian "Etch" 4.0

Thanks for this. The procedure allowed curl to work with modern servers on a very old Etch installation that could not be updated for a few reasons.

  • 1