- Generate private key
1
$ openssl genrsa -out my_private_key.key 2048
- Generate public key
1
$ openssl rsa -in my_private_key.key -pubout my_public_key.key
- Check private key
1
$ openssl rsa -in my_private_key.key -check
1
$ openssl genrsa -out my_private_key.key 2048
1
$ openssl rsa -in my_private_key.key -pubout my_public_key.key
1
$ openssl rsa -in my_private_key.key -check