Java Keystore: Command "openssl" not found
I'm using Windows 7 64 bit and I'm trying to export the base64 encoded sha-hash of my Key with this command:
keytool -exportcert -alias [alias] -keystore [keystore]
| openssl sha1 -binary
| openssl base64
Unfortunatly I get the e开发者_运维问答rror
command "openssl" not found
I also tried to use other commands, that were shown on this website: http://www.startux.de/index.php/java/44-dealing-with-java-keystores But I always get the error, that openssl cannot be found. What am I missing?
Solution
I was missing openssl. And I downloaded it here: deanlee.cn/programming/openssl-for-windows
It works for me on Windows, so the only conclusion I can draw is that you are missing openssl, or it is not on your PATH. Either add it, or use the full path to the executable.
Is this on Windows or Linux? These looks like a typical Linux command line and I am pretty sure openssl comes by default on most systems. On windows you may need to look at alternative commands to run or install Cygwin.
i had the same problem,what i did download the open ssl http://code.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip&can=2&q= and add to windows env PATH variable
精彩评论