in reply to SSL connect error
"Any idea what might cause the error?"
Not without any code. Please update your question and paste a minimal example that demonstrates the issue.