Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 error

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

like image 292
Pascal Klein Avatar asked Jun 17 '26 16:06

Pascal Klein


1 Answers

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.

like image 186
OrangeDog Avatar answered Jun 19 '26 05:06

OrangeDog