On Jan 5, 2015, at 12:01 PM, openssl at comaxis.com wrote: > Are there any known problems using OpenSSL with iCloud? I am trying to > connect to imap.mail.me.com using port 993. My call to SSL_Connect() > returns 0, with SSL_get_error() returing 1 (SSL_ERROR_SSL). I am using > OpenSSL version 1.0.1h, running on Win32. I can use this code with any > other IMAP server with no problems. Are you able to connect using the openssl s_client application? I can connect (to port 993, no starttls) with either 1.0.1j or 0.9.8za; perhaps s_client will give you a more diagnostic error message if it also fails for you.