For some project I needed to recover the password that was used to encrypt a PKCS12 key.
After some trial and error, I was able to compile it under Debian Woody. For your convenience, I have put the openssl binary online. It runs on i386 linux systems.
./openssl pkcs12 -in mycert.p12 -aion /usr/share/dict/words
Remember: it is ancient OpenSSL-0.9.7c so full of security bugs, hence only use it to recover lost passwords.