-KeyStore: It contains private keys and public certificates which are used to authenticate clients. It is used to configure on the server side.
-TrustStore: It contains trusted SSL or public certificates. usually, it is used to configure on the client side.
Create a keypair and keystore
keytool -genkeypair -alias…