Now SSL connections are working.

Note that self-signed certificates and non-matching host name errors are ignored.