Currently CurlClient allows connecting to Jira over SSL, but it doesn't verify if the SSL certificate is valid. The PhpClient relies on the PHP defaults, which vary depending on used PHP version.
Need explicitly specify, that host/peer needs to be verified.