Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can't you generate a public key from a private one easily?


Yes:

  ssh-keygen -y -f private_key.pem > public_key.pub


Yes and no. It extracts the public key from the private key file. The "private" key file includes both keys.

The public key file doesn't.


> The "private" key file includes both keys.

It wouldn't need to, though. Given the private key (n,d), the public key is probably (n,65537).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: