Adds support for self-signed certificates