본문 바로가기

Develop/Linux

Generate public key for Open ssl

get public key start with "ssh-rsa ~~~~"


But if you need to get public key start like "-----BEGIN PUBLIC KEY-----~~~~",


need to genertate another public key.


]$ openssl rsa -in {private_key_file} -pubout


you can get public key start with "-----BEGIN PUBLIC KEY-----~~~~"