I try to create a new self certified keystore file
The command I use is:
keytool -genkey -selfcert -dname \"cn=My Name, ou=Orga unit\" -alias selfcer
First generate the upload key using below command:
keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
then run
keytool -exportcert -keystore path-to-debug-or-production-keystore -list -v