adding support for self-signed certificates - fixing issue #4