红宝石遏制宝石-如何设置能力?

时间:2019-01-03 18:21:23

标签: ruby ssl curl openssl curb

我正在尝试使用Curb gem发送请求,但是SSL告诉CApath: none总是会出错,

这是我的遏制电话:

response = Curl::Easy.new(URL_HOME)
response.ssl_verify_peer = false
response.ssl_version = Curl::CURL_SSLVERSION_TLSv1_0
response.verbose = true
response.perform

终端上的响应:

*   Trying 000 "numbers"...
* TCP_NODELAY set
* Connected to www.some_web_site port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.some_web_site:443 
* Closing connection 0
SSL connect error

因此,我现在尝试设置CApath,我该如何设置?

我已经尝试过以下解决方案:

0 个答案:

没有答案