Exception Information
System.PlatformNotSupportedException:The handler does not support custom handling to certificates with this combination O F Libcurl (7.29.0) and its SSL backend (\ "Nss/3.28.4\") at the
System.Net.HttpWebRequest.GetResponse () at
System.Net.WebClient.GetWebResponse (WebRequest request) at
System.Net.WebClient.DownloadBits (WebRequest Request, Stream Writestream)
Update Curl
Download the latest version
wget https://curl.haxx.se/download/curl-7.57.0.tar.gz
# official address: https://curl.haxx.se/download.html
Decompression compilation
# yum Install openssl-devel gcc #安装openssl和gcc
tar-zxf curl-7.57.0.tar.gz
cd curl-7.57.0
./configure- prefix=/usr/local/curl/--without-nss--with-ssl=/usr/local/ssl/make
&& make install
Replace system Curl
Backup Curl
Mv/usr/bin/curl/usr/bin/curl.bak
Create link
Ln-s/usr/local/curl/bin/curl/usr/bin/curl
Edit ld.so.conf
Include ld.so.conf.d/*.conf
/usr/local/curl/lib
Verifying installation
Re-load Configuration
Ldconfig
View version
Curl-v
Reference articles:
Https://www.cnblogs.com/calvinK/p/8086046.html