I have generated the Keystore using this command
keytool -genkeypair -alias myapp -keyalg RSA -keystore keystore.jks -ext SAN=IP:
T