title: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443
body: <p>In my <a href="https://stackoverflow.com/questions/58645747/python-connection-aborted-error104-connection-reset-by-peer-when-tryi">previous question</a> I was facing issues getting my Telegram webhook to work. And now, when I try to <code>curl</code> Telegram's <code>https://api.telegram.org</code> I'm getting <code>OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443</code>.</p>
  
  <p>The following is the verbose and response from the request.</p>
  
  <pre class="lang-sh prettyprint-override"><code>curl -v https://api.telegram.org
  * Rebuilt URL to: https://api.telegram.org/
  *   Trying 149.154.167.220...
  * TCP_NODELAY set
  * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
  * ALPN, offering h2
  * ALPN, offering http/1.1
  * successfully set certificate verify locations:
  *   CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  * TLSv1.3 (OUT), TLS handshake, Client hello (1):
  * OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443
  * stopped the pause stream!
  * Closing connection 0
  curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443
  
  </code></pre>
  
  <p>How should I proceed? I have reinstalled and upgraded <code>OpenSSL</code>. Live migrated to a new hypervisor.</p>
  
  <p><strong>Update:</strong> Tested it with a new droplet. Same situation. <a href="https://i.imgur.com/2Nph0TN.png" rel="nofollow noreferrer">Screenshot</a>.</p>