Skip to main content
  1. Posts/

Extracting public key from pem file

·1 min

If you need to extract the public key from your PEM format certificate file, you can use the ssh-keygen command for this like so:

    ssh-keygen -f certificate.pem -y

where certificate.pem is your pem file. This command will output the public key on stdout.