keytool error: java.lang.Exception: Key pair not generated, alias already exists

https:/‮‬/www.lautturi.com
keytool error: java.lang.Exception: Key pair not generated, alias already exists

The issue occurs when requesting a certificate when a server certificate with the same alias already exists in the certificate database.

Due to this issue, users cannot renew/request certificate.

change the alias name or store it to another keystore:

keytool -genkey -v -keystore debug.keystore D:\.android\debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Created Time:2017-10-03 13:59:24  Author:lautturi