The curl hint does not support HTTPS protocol resolution

Source: Internet
Author: User

According to the information on the Web, this is because the default installation is used when curl is installed, but the default installation does not support the HTTPS protocol

The simple and brutal way is to uninstall reinstall Curl (one way is to recompile it, and then use the compiled executable directly instead of the original executable curl)

First download Curl's compression package, I habitually download tar.gz package

Decompression, before compiling, it is best to remove the original curl, should be able to direct yum remove curl unloading, but not recommended, because the fear of affecting other programs, so my method is which curl, and then the Curl command path name, such as adding a bak suffix, It is convenient to fail after reinstalling, and can also fall back to the original curl

./configure--prefix=/usr/local/bin/curl--with-ssl

Make

Make install

Once installed, check the installed Curl support HTTPS protocol without

[Email protected] curl-7.59.0]#/usr/local/bin/curl/bin/curl--version
Curl 7.59.0 (X86_64-PC-LINUX-GNU) libcurl/7.59.0 openssl/1.0.2k zlib/1.2.7
Release-date:2018-03-14
Protocols:dict file ftp FTPs Gopher HTTP HTTPS IMAP imaps POP3 pop3s rtsp SMB SMBs smtp Smtps telnet t
FTP Features:asynchdns IPv6 largefile NTLM ntlm_wb SSL libz unixsockets https-proxy
[Email protected] curl-7.59.0]#

As you can see, HTTPS is already supported

Finally, we'll put the newly installed Curl command path in the PATH environment (add the following in file/etc/profile)

Path=. $PATH: $JAVA _home/bin: $JRE _home/bin:/usr/local/bin/curl/bin
Export Java_home jre_home Class_path PATH

The curl hint does not support HTTPS protocol resolution

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.