Curl Update

Aus HS Syswiki
Version vom 26. April 2016, 13:10 Uhr von 84.253.15.193 (Diskussion)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

There's an issue when e.g. updating Joomla Plugins, curl cannot verify peer certificate because of an outdated CA Bundle. See here: https://github.com/joomla-extensions/weblinks/issues/79

To resolve this and have an up-to-date CA-Certificate Bundle (and CURL library), it's necessary to update the Curl package. This can be done like this:

Inhaltsverzeichnis

Prerequisites

OpenSSL Update must be done before as described here: http://syswiki.internet-license.net/index.php?title=Openssl_patch

Package "customopenssl" must be isntalled. Check with:

rpm -qa customopenssl

Update

Copy the following RPMS to the server:

scp libcurl4-7.44.0-1.1.x86_64.rpm tuxNN:/usr/local/src/rpm/openssl_upgrade
scp curl-7.44.0-1.1.x86_64.rpm tuxNN:/usr/local/src/rpm/openssl_upgrade
scp curl-ca-bundle-7.44.0-1.1.x86_64.rpm tuxNN:/usr/local/src/rpm/openssl_upgrade

(only updating the ca bundle would not help because current curl cannot cope with hashing algorithms within the new bundle)

Then update packages on the server:

cd /usr/local/src/rpm/openssl_upgrade
rpm -Uvh libcurl4-7.44.0-1.1.x86_64.rpm curl-7.44.0-1.1.x86_64.rpm curl-ca-bundle-7.44.0-1.1.x86_64.rpm

Testen

Zuerst in der aktuellen shell ebenfalls die Pfade für die Shared Libraries zu aktualisieren:

/sbin/ldconfig

Danach auf github verbinden (hat ein neues CA Zertifikat, welches nur im neuen ca-bundle enthalten ist):

curl https://github.com/


Curl fix (26.04.2016)

curl fix for shared libraries / mismatch with libcurl

tux313:/usr/local/lib64 #   ldconfig /usr/local/lib64
tux313:/usr/local/lib64 #  ldconfig -v -p |grep -i curl
        libcurl.so.4 (libc6,x86-64) => /usr/local/lib64/libcurl.so.4
        libcurl.so.4 (libc6,x86-64) => /usr/lib64/libcurl.so.4
tux313:/usr/local/lib64 #  curl -V
curl 7.44.0 (x86_64-unknown-linux-gnu) libcurl/7.44.0 OpenSSL/1.0.1j zlib/1.2.3 libidn/1.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Navigation
Werkzeuge