keytool -genkey error: Keystore file does not exist

后端 未结 5 624
有刺的猬
有刺的猬 2020-12-28 18:31

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         


        
5条回答
  •  無奈伤痛
    2020-12-28 18:32

    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 
    

提交回复
热议问题