[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-ssl] Problems reconstructing the light demo applet





I am using the evaluation version of iSaSiLkLight 2.0.  I am trying to
reconstruct the applet demo consisting of SSLCode1.java, SSLApplet1.java and
PublicKeyStore.java.  I recompiled using jdk 1.2.2.  I am running the applet
against Apache/1.3.6 (Win32) with mod_ssl/2.3.11 and OpenSSL/0.9.4 . The
ExtractKey business appears to be working as it generates the
PublicKeyStore.java without complaints. After putting the iaik_ssl_light.jar
and the .class files in place, I am able to load the applet.  When entering
a relative url and pressing the Fetch Document button an exception is
thrown.

Status: an exception occured: 2:40

Trying http://jcewww.iaik.tu-graz.ac.at/demo/light/demo1.html throws the
same exception, although I wagely remember seeing that work ...

On the server side, Apache produces the following:

[Tue Oct 05 17:31:40 1999] [error] mod_ssl: SSL handshake failed (client <my
ip address>, server <mymachine.mydomain>:443) (OpenSSL library error
follows)
[Tue Oct 05 17:31:40 1999] [error] OpenSSL: error:0407106B:rsa
routines:RSA_padding_check_PKCS1_type_2:block type is not 02
[Tue Oct 05 17:31:40 1999] [error] OpenSSL: error:04065072:rsa
routines:RSA_EAY_PRIVATE_DECRYPT:padding check failed
[Tue Oct 05 17:31:40 1999] [error] OpenSSL: error:14086081:SSL
routines:SSL3_ENC:block cipher pad is wrong

I ran the same stuff from the command line using jdk1.2.2

C:> java SSLApplet1 <mymachine>:443
Press Return to end.
send client_hello...
received server_hello...
Server doesn't want to resume a previous session.
CipherSuite selected by server: SSL_RSA_WITH_RC4_MD5
CompressionMethod selected by server: NULL
received Certificate - ignoring...
received server_hello_done...
send ClientKeyExchange...
send change_cipher_spec...
send finished...
Handshaker: Received Alert!
An exception occured: 2:20
iaik.applet.ssl.SSLException: 2:20
        at iaik.applet.ssl.Handshaker.receiveSSLMessage(Handshaker)
        at
iaik.applet.ssl.ClientHandshaker.receiveHandshakeMessages(Compiled Code)
        at iaik.applet.ssl.ClientHandshaker.doHandshake(ClientHandshaker)
        at iaik.applet.ssl.SSLConnection.startHandshake(SSLConnection)
        at SSLCode1.fetchDocument(Compiled Code)
        at SSLApplet1.fetchDocument(SSLApplet1.java:160)
        at SSLApplet1.getButton_Action(SSLApplet1.java:151)
        at SSLApplet1.handleEvent(Compiled Code)
        at java.awt.Component.postEvent(Compiled Code)
        at java.awt.Component.postEvent(Compiled Code)
        at java.awt.Component.dispatchEventImpl(Compiled Code)
        at java.awt.Component.dispatchEvent(Compiled Code)
        at java.awt.EventQueue.dispatchEvent(Compiled Code)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)

Any ideas or comments?
--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-ssl/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-ssl