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