If you run a self signed SSL certificate on your local web server and run tools that make http requests like phatomjs or uncss against that server you will receive a certificate verification error.

To temporarily disable Node.js built in SSL verification set the following environment variable:

NODE_TLS_REJECT_UNAUTHORIZED=0

N.B. You should understand that while you have this variable set you are open to SSL man in the middle attacks it is important to disable and delete that variable when running npm install or any other important Node commands.

unset NODE_TLS_REJECT_UNAUTHORIZED

 

Ryan is a hacker dad living in Cape Town, South Africa who likes Skate Boarding JavaScript and Functional Programming.

ryanwild @javascript_fn