Support for ca_cert_path, pem and pem_password options. Thanks to @trybeee