Wednesday, February 02, 2005

PGP IMS

Here's the instructions for fixing the PGP Encryption error

1- sudo cp /home/bryan/.maven/repository/cryptix/jars/cryptix-jce-provider-20030217-snap.jar
/opt/sun-jdk-1.4.2.05/jre/lib/ext/cryptix-jce-provider.jar

2- sudo cp /home/bryan/.maven/repository/bouncy-castle/jars/bcpg-jdk14-121.jar
/opt/sun-jdk-1.4.2.05/jre/lib/ext/bcpg.jar

3- sudo cp /home/bryan/.maven/repository/bouncy-castle/jars/bcprov-jdk14-121.jar
/opt/sun-jdk-1.4.2.05/jre/lib/ext/bcprov.jar

4- Are you sure you want to overwrite the default 'strong' encryption
policy files? [no] yes

5- sudo cp /home/bryan/.maven/repository/jce-policy/jars/local_policy-1.4.2-unlimited.jar
/opt/sun-jdk-1.4.2.05/jre/lib/security/local_policy.jar

6- Are you sure you want to overwrite the default 'strong' encryption
policy files? [no] no

7- vi $JAVA_HOME/jre/lib/security/java.security

8- add the following lines:
security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
security.provider.7=cryptix.jce.provider.CryptixCrypto
security.provider.8=cryptix.jce.provider.CryptixRandom

9- Are you sure you want to overwrite the default 'strong' encryption
policy files? [no] no

10- What is the message to encrypt? [] nothing

No comments: