title: crypto.load_certificate / Get public key encryption
body: <p>How is it possible from crypto.load_certificate to get the public key encryption ? (for example &quot;RSA (2048 Bits&quot;).</p>
  <p>I can get the public key easily as below :</p>
  <pre><code>from OpenSSL import crypto
  
  cert = crypto.load_certificate(crypto.FILETYPE_PEM, open(&quot;certificate.crt&quot;)).read()
  pubKey = cert.get_pubkey()
  </code></pre>
  <p>But I couldn't find anything in the documentation concerning the encryption. Any ideas?</p>
  <p><a href="https://i.stack.imgur.com/Frm4c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Frm4c.png" alt="Certificate" /></a></p>