PhantomJS failing to open HTTPS site

后端 未结 12 1774
梦如初夏
梦如初夏 2020-11-22 07:53

I\'m using the following code based on loadspeed.js example to open up a https:// site which requires http server authentication as well.

var page = require(         


        
12条回答
  •  终归单人心
    2020-11-22 08:12

    Note that as of 2014-10-16, PhantomJS defaults to using SSLv3 to open HTTPS connections. With the POODLE vulnerability recently announced, many servers are disabling SSLv3 support.

    To get around that, you should be able to run PhantomJS with:

    phantomjs --ssl-protocol=tlsv1
    

    Hopefully, PhantomJS will be updated soon to make TLSv1 the default instead of SSLv3.

提交回复
热议问题