Thanks a lot !
I had to put this line :
System.setProperty('javax.net.ssl.keyStorePassword','my_password');

Thanks thanks thanks !

I will now code the client

Eric

Daniel Adamski a écrit :

On Tue, 21 Jun 2005 18:05:59 +0200, Eric BOYER <[EMAIL PROTECTED]> wrote:



Right,

I'm working with eclipse :

Directories :
Workspace/presentation/src/fr/insat/*.java

The testkeys file should be placed in Workspace/presentation

Default place, where JVM looks for file with keys and certificates
is ~/.keystore (on Linux, I don't know where it is on Windows).
If you want to use another file you should set JVM property:
javax.net.ssl.keyStore
to value which is path to your file with keys and certificates.


But now I have this exception :o(

java.io.IOException: Keystore was tampered with, or password was incorrect

When you were generating keys with keytool, you were asked for a password.
Now you have to deliver this password to JVM if you want to use that
keys. You can do this by setting JVM property:
javax.net.ssl.keyStorePassword


Try this and tell if it helped.



Reply via email to