title: How do I identify if my certificate contains private key?
body: <p>According to <a href="https://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-file">the answer to this server-fault question </a> almost all certificate file formats can contain private key alongside public key, as such how can I identify whether a certificate contains private key? </p>
  
  <p>This is important because I do not want to unknowingly send the private key to the remote client.</p>