AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SSLSocket between application and signet applet don't work

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Marco
Guest





PostPosted: Fri Dec 30, 2005 8:02 pm    Post subject: SSLSocket between application and signet applet don't work Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.