connect: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

前端 未结 4 638
栀梦
栀梦 2021-02-13 12:56

I\'m having a terrible time getting SSL to verify a certificate. I\'m completely ignorant on how certificates work so that\'s a major handicap to begin with. Here\'s the error

4条回答
  •  无人共我
    2021-02-13 13:30

    You need to provide the private key file that goes along with your certificate.

    http.auth.ssl.cert_key_file = "mycert.pem"
    

    If your private key file is encrypted, you'll need to supply the password too:

    http.auth.ssl.cert_key_password = "foobar"
    

提交回复
热议问题