Invalid key in message

martijn

I'm having trouble to get rid of the "Invalid key in message" error.

I followed the leads i found on this forum but no result...

I'm running mec as2 1.0 build 23 on Ubuntu (kernel 2.6.12-10-386) with jdk1.6 and the policy jars (tried both java 5 and 6) in java_home/lib/security

I'm running a bit out of clues here...

Anyone a suggestion?



crownedgrouse
crownedgrouse's picture
simply

simply, the key is may be really invalid ?

Check also that your certificate is still valid ('NotAfter' X509 entry).



crownedgrouse
crownedgrouse's picture
Do you have the unrestricted java policy ?

Well, It remember me something...
You must install US_export_policy.jar in your lib/security/ java path, in order to use strong encryption !



martijn
nope, took care of

nope, took care of both:

cert is valid, examined with portecle, looks fine.

added (as stated in the op) the policy jars....



heller
heller's picture
martijn, seems as if you did

martijn,
seems as if you did everything right, please check the following things:

*Are you really using the vm you have patched or is there an other one?
*In my opinion the path should be <jdk_home>/jre/lib/security, anyway there is no need to create a new directory, you should overwrite existing *policy.jar files.

Regards
Heller



martijn
Hi Heller, Spot on! I was

Hi Heller,

Spot on! I was running with my jdk at first into where i placed the policy jars.

Afterwards i noticed this and looked around in the jre dir where i did find lib/security, but with policy jars, and made the very wrong assumption that if they were there it was ok.

Anyway, it's clear even with running jre 1.6 the policy jars have to be replaced with 1.5 versions....

It's working now.

Thnx!



crownedgrouse
crownedgrouse's picture
In addition to

In addition to Heller, please check you are using the right java !

$> whereis java

I remember once, I almost get nuts because of a java jre upgrade that change the default to a new jre install.

My unrestricted policy was in a older jre directory !



martijn
Your absolutely right

Your absolutely right crownedgrouse, i was looking with my nose... thnx for the input.




© 1999-2008 mendelson-e-commerce GmbH. All right reserved.