0

I was looking everywhere how to solve this problem and nothing.

I am using Centos 6 VPS. Thanks

3 Answers3

2

Your libcurl is built without ssl support. e.g. --without-ssl

libcurl FAQ

Icarus3
  • 2,310
  • 14
  • 22
  • You will have to build the libcurl using the correct switch. see: https://stackoverflow.com/questions/28782556/how-do-i-get-curl-to-use-https and https://stackoverflow.com/questions/12636536/install-curl-with-openssl – Icarus3 Aug 02 '18 at 01:59
0

As @Icarus3 mentioned, make sure SSL feature is enabled.

$ curl --version

See curl/CMakeLists.txt.

if(WIN32 OR CURL_USE_SECTRANSP OR CURL_USE_SCHANNEL OR CURL_USE_MBEDTLS OR CURL_USE_NSS OR CURL_USE_WOLFSSL)
  set(openssl_default OFF)
endif()

If you are using CMake to build curl, you can use the following command.

$ cmake -D BUILD_SHARED_LIBS=OFF \
        -D CURL_USE_SCHANNEL=ON \
        -D CURL_STATIC_CRT=ON ..
Burak
  • 2,251
  • 1
  • 16
  • 33
-1

On Ubuntu, you may install the development package, which is libssl-dev:

sudo apt-get install libssl-dev

It works for me.

孙小球
  • 1
  • 1