Skip to content

Capturing page with SSL errors

Neville edited this page Jan 13, 2017 · 1 revision

It's common for development versions of sites to have self-signed certificates or other SSL issues. By default, PhantomJS will not capture these pages. You'll either get an error message, or blank images when trying to capture pages with invalid SSL certificates.

Wraith allows you to pass through config settings, so you can add the following line to your config.yaml:

phantomjs_options: --ignore-ssl-errors=true --ssl-protocol=tlsv1

This should allow the pages to be captured. It works for some, not others; if you find it still fails, make sure you're using the latest releases of casper and/or phantom.