1
votes

While generating keystore by using keytool I receive error illegal option: genkeypair. But when I see help genkeypair is available as option. What am I doing wrong in command?

C:\Program Files\Java\jdk1.7.0_51\bin>keytool.exe -genkeypair -alias orbis -storetype pkcs12 -keyalg RSA -keysize 2048 -keystore d:\Certificates\orbisKeyStore.p12

1
Try with the interactive way: keytool.exe -genkeypairuser180100
Tried with keytool.exe but no luckTanveer
I had the same error. In my case, I had an erroneous space between a dash '-' and the following switch.JanB

1 Answers

0
votes

I suggest you to just use your IDE to do your job.

Right click on project --> Android Tools --> Export Signed Application Package --> Create New Key Store

and then just follow the wizard. You can also follow this link