I want to know if there is a way to create a .key file for (public and private key) using keytool, I understand that we can create a keystore using the following command
keytool -genkeypair -keysize 2048 -keyalg RSA -alias appalias -keystore D:\..\..
which has keypair, I also know about the way to extract keys from the java key store, but does it have a direct way to use KEYTOOL
source
share