Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 3
    The private.key file contains the private and public keys. You can decode it with an ASN.1 parser to see the various parts inside. These will vary according to the format (eg RSA, DSA, ECDSA) but one of them will be a private key and one a public key, along with other parameters. Also as mentioned in below answers you can derive a public key from a private key as well. Commented Jun 9, 2017 at 5:20