title: openssl s_client -connect ldaphost:636, returns error message: write:errno=104
body: <p>I am trying to retrieve the SSL Certificate from LDAP(Active Directory) Server.</p>
  
  <p>When i try the following command(on a linux box):</p>
  
  <pre><code>$ openssl s_client -connect ldaphost:636
  </code></pre>
  
  <p>I get the error message:<br></p>
  
  <pre><code>CONNECTED(00000003)
  write:errno=104
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>$ openssl s_client -connect ldaphost:636 -ssl2
  $ openssl s_client -connect ldaphost:636 -ssl3
  $ openssl s_client -connect ldaphost:636 -stls1
  </code></pre>
  
  <p>All of them give the same error.<br>
  What could be the problem?</p>