Ruby Net::HTTP responds with OpenSSL::SSL::SSLError “certificate verify failed” after certificate renewal

前端 未结 3 1227
野趣味
野趣味 2020-12-11 17:55

We recently renewed the SSL certificate of our site, and the following occurs on Mac OS El Capitan 10.11.3:

require \'net/http\'

Net::HTTP.get URI(\'https:/         


        
3条回答
  •  孤城傲影
    2020-12-11 18:10

    It sounds like the problem is with your OSX certificates cache. I guess you updated your certificates before the old one has expired?

    Try purging your OSX system wide CRL cache by running this command:

    crlrefresh rpv
    
    # p - purges cache, r - refreshes them, v - run in verbose mode
    

    This is a built-in command-line tool that updates and maintains system-wide CRL cache. Read more about it in its man page (mand crlrefresh).

提交回复
热议问题