Search code examples
androidgradlekeystore

Create keystore entry with gradle


I can create new apps with different package names from my project, but I also need to sign them.

Is it possible to use gradle for creating new keystore entries?


Solution

  • I´ve found the minimal command to create new certificates with a single command

    keytool -genkeypair -alias yourAlias -validity 90 -storepass myKeystorePassword -keypass myKeyPassword -keystore myKeystorePath -dname 'cn=myName'