SSL_connect returns -1, SSL_get_error=1 I have two files: ca.crt and ca.key, generated using this commands: