使用phantomjs时出现SSL证书错误
我在使用phantomjs和rasterize.js时遇到问题。当我执行以下命令时:使用phantomjs时出现SSL证书错误,ssl,phantomjs,ssl-certificate,Ssl,Phantomjs,Ssl Certificate,我在使用phantomjs和rasterize.js时遇到问题。当我执行以下命令时: phantomjs--ssl协议=any/lib/rasterize.js'https://www.google.com''test.png' 我得到以下错误: 2017-10-04T08:21:05 [DEBUG] Network - SSL Error: "The issuer certificate of a locally looked up certificate could not be found
phantomjs--ssl协议=any/lib/rasterize.js'https://www.google.com''test.png'
我得到以下错误:
2017-10-04T08:21:05 [DEBUG] Network - SSL Error: "The issuer certificate of a locally looked up certificate could not be found"
2017-10-04T08:21:05 [DEBUG] Network - SSL Error: "The root CA certificate is not trusted for this purpose"
2017-10-04T08:21:05 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(SslHandshakeFailedError) ( "SSL handshake failed" ) URL: "https://www.google.com/"
我可以使用--ignore--ssl errors=true
标志来解决这个问题,但我不想忽略所有的ssl错误
你知道我该怎么解决这个问题吗