Adding cacert file to phar and more cert validation
Addresses #280.