15.5 Generate private/public keys

The genkeys() function generates a public and private key pair. A password is required to be set in the dialogue box for the private key. Two files are written to the active directory.

The default name for the private key is:

  • id_rsa

And for the public key name is generated by default:

  • id_rsa.pub

If the private key file is lost, nothing encrypted with the public key can be recovered. Keep this safe and secure. Do not share it without a lot of thought on the implications.

genkeys()
#> Private key written with name 'id_rsa'
#> Public key written with name 'id_rsa.pub'