2012-11-14 9 views
3

Windows 용 cURL을 here에서 다운로드했습니다. SSL없이 Win64 - Generic 버전을 선택했습니다. 명령 줄에서 curl https://www.google.com을 실행하려고하면 다음 오류가 표시됩니다. curl: (1) Protocol https not supported or disabled in libcurl.Windows 명령 줄에서 cURL을 작동 시키려면 어떻게합니까?

오케이! 다음으로, SSL으로 버전을 다운로드하고 설치하기로 결정했습니다. 위와 같은 명령을 실행하려고하면 다음 오류가 발생합니다.

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: 
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 
More details here: http://curl.haxx.se/docs/sslcerts.html 

curl performs SSL certificate verification by default, using a "bundle" of Certificate 
Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you 
can specify an alternate file using the --cacert option. 
If this HTTPS server uses a certificate signed by a CA represented in 
the bundle, the certificate verification probably failed due to a 
problem with the certificate (it might be expired, or the name might 
not match the domain name in the URL). 
If you'd like to turn off curl's verification of the certificate, use 
the -k (or --insecure) option. 

다음에해야 할 작업은 무엇입니까?

+0

Windows 명령 프롬프트에서 컬을 사용하려면이 [자습서] (http://a2znotes.blogspot.in/2015/02/install-and-configure-curl-on-windows.html)를 따르십시오. 설치에 관한 유용한 정보를 제공합니다. –

답변

3

다음은이 문제를 해결하기 위해 수행 한 작업입니다.

모질라가 사용하는 CA 루트 인증서 번들이 here에서 있습니다. 페이지의 데이터를 복사하여 curl.exe 파일이 있던 폴더에 curl-ca-bundle.crt이라는 새 파일에 저장했습니다. 그것은 그 문제를 해결했습니다. 물론

은이 지침은 또한 정확하게 지시 4 도움 (5)

희망의 컬을 documentation page for SSL certificates에서 찾을 수 있습니다.

+0

다른 소스 및 다운로드 링크 : http://curl.haxx.se/docs/caextract.html – CSchulz

관련 문제