Portecle Error: Could not load keystore as type PKCS12

If you encounter the error

net.sf.portecle.crypto.CryptoException: Could not load keystore as type PKCS12

while trying to open an OpenSSL created PKCS12 type keystore file, that means you need to install the Java Unlimited Strength Jurisdiction Policy files into your JAVA runtime environment. Due to U.S. export restrictions, practically all JAVA runtime environments are crippled such that they cannot utilize high encryption algorithms. You must manually install the “Unlimited Strength Jurisdiction Policy” files from the JAVA homepage and install them into your JAVA runtime environment.

You can download the “Unlimited Strength Jurisdiction Policy” files from the official JAVA download site: http://java.sun.com/javase/downloads/

Usually the policy files are installed into the ./lib/security subdirectory of your JAVA runtime environment directory.

Open Command Prompt Here Feature in Vista

There is a very handy PowerToy for Windows which allows you to right-click any directory in the File Explorer and an option to “Open Command Window Here” would show up in the contextual menu. This option would allow you to open up a command prompt window with the directory already set to the directory you right-clicked on.

This feature is built into Windows Vista and can be activated by right-clicking on a directory name while holding down the shift key. When you do this, the contextual menu option “Open Command Window Here” will appear.

How to Recursively chmod Directories or Files

Command to recursively chmod only directories:

find . -type d -exec chmod 755 {} \;

How to recursively set the execute bit on every directory:

chmod -R a+X *

The +X flag sets the execute bit on directories only

How to recursively chmod only files:

find . -type f -exec chmod 644 {} \;

How to recursively chmod only PHP files (only for PHP files with the extension .php):

find . -type f -name '*.php' -exec chmod 644 {} \;

You can change the “.php” in the line above to whatever file extension that you want.