Add switch to enable/disable acceptance of self-signed certs