I have created a demo certificate and demokey with the CertGen tool from wls 8.1.

I am now trying to use this certificate and key in a wls 5.1, but when starting
the server I get an EOFException.

I have seen other people have the same problem, and the solution should be to
set the flag "Use Encrypted Keys" in the console and provide the "-Dweblogic.management.pkpassword"

On the 5.1 I can provide the "-Dweblogic.management.pkpassword" option, but I
can't seem to find out how to set the "Use Encrypted Keys"