title: What does "SSLError: [SSL] PEM lib (_ssl.c:2532)" mean using the Python ssl library?
body: <p>I am trying to use connect to another party using Python 3 asyncio module and get this error:</p>
  
  <pre><code>     36     sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
  ---&gt; 37     sslcontext.load_cert_chain(cert, keyfile=ca_cert)
       38
  
  SSLError: [SSL] PEM lib (_ssl.c:2532)
  </code></pre>
  
  <p>The question is just what the error mean. My certificate is correct, <em>the keyfile (CA certificate) might not</em>.</p>