CasperJS won't load https page
Water
|
10/20/2014
|

Recently I found that casperJS won't load https page as before, --ignore-ssl-errors flag is already set:

    casperjs --ignore-ssl-errors=yes file.js

It turns out that it caused by the recent SSLv3 vulnerability that SSLv3 transport is disabled in most web server, and phantomJS use SSLv3 by default. To fix it, add one more options:

    casperjs --ignore-ssl-errors=yes --ssl-protocol=tlsv1 file.js

to force using TLSv1. Or simply set to any:

    casperjs --ignore-ssl-errors=yes --ssl-protocol=any file.js