 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Marco Guest
|
Posted: Fri Dec 30, 2005 8:02 pm Post subject: SSLSocket between application and signet applet don't work |
|
|
I used the following batch file for creating pwdServer e certificato.cer
files:
C:jdk1.3.1_14binkeytool -genkey -keystore pwdS -keyalg rsa -alias
marco -storepass 123456
C:jdk1.3.1_14binkeytool -genkey -keystore pwdS -dname
"cn=Marco" -storepass 123456
C:jdk1.3.1_14binjarsigner -keystore pwdServer -storepass
123456 -signedjar firmata.jar client.jar marco
C:jdk1.3.1_14binkeytool -export -keystore pwdS -storepass 123456 -alias
marco -file certificato.cer
Now, the pwdServer files work ok: I can open server and client with the
commands (in cmd):
java -jar -D -Djavax.net.ssl.keyStore=pwdServer -Djavax.net.ssl.keyStorePassword=123456
server.jar
java -jar -Djavax.net.ssl.trustStore=pwdServer -Djavax.net.ssl.trustStorePassword=123456
client.jar
If I use the signed appled in an html page, and I import the certificate
(certificato.cer), I can read and write in my HD, but the SSLSocket don't
work.
The applet generates the exception:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
and the server, open in cmd, the following error:
javax.net.ssl.SSLHandshakeException: Received fatal
alert: certificate_unknown
When I wrong?
Thank you
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|