I am using keytool to create a CSR.
I wonder what is the difference between the options -genkey and -genkeypair. My understanding is that -genkey creates only private key and -genkeypair creates both private and public key.
If so, how do I get the public key of the private key which is created using -genkey?