Java Keytool error after importing certificate , “keytool error: java.io.FileNotFoundException & Access Denied”

This could happen if you are not running the command prompt in administrator mode. If you are using windows 7, you can go to run, type cmd and hit Ctrl+Shift+enter. This will open the command prompt in administrator mode. If not, you can also go to start -> all programs -> accessories -> right click … Read more

Keytool Signing Problem: Keystore was tampered with, or password was incorrect

I don’t think you have to include a storepass when you’re just doing a list. The storepass encrypts the private key which isn’t displayed when doing a list. Just try this: keytool -list -keystore /Users/salam/Documents/yada/yada Then provide your keystore password when prompted. If that works then you can try just the keypass on the command … Read more

Generate certificates, public and private keys with Java [closed]

You can generate Certificate in java dynamically, by using a pair or keys. (Public Key, Private Keys). Get These keys as BigInteger format and checking the following code to generate certificate. RSAPrivateKeySpec serPrivateSpec = new RSAPrivateKeySpec( new BigInteger(val of pub key), new BigInteger(val of pri key)); fact = KeyFactory.getInstance(“RSA”); PrivateKey serverPrivateKey = fact.generatePrivate(serPrivateSpec); RSAPublicKeySpec serPublicSpec … Read more

Find the key hash for a signed app

You should know where is your keystore file. For me is C:\Users\Selvin\Desktop\selvin.kp You should know your alias in keystore. For me is selvin You should know path to keytool. C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe You should know path to openssl. C:\OpenSSL-Win32\bin\openssl.exe You should know password to keystore. For me is ***** hehe Then, you should call: C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe” … Read more

Openssl is not recognized as an internal or external command

Well at the place of OpenSSL … you have to put actually the path to your OpenSSL folder that you have downloaded. Your actual command should look like this: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | “C:\Users\abc\openssl\bin\openssl.exe” sha1 -binary | “C:\Users\abc\openssl\bin\openssl.exe” base64 Remember, the path that you will enter will be the path where you … Read more