CentOS7. Netcore HTTPS Request __.net

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.