There might be a bug when client-site certificates are required for transmission. Without required client certificate everything works all OK. Java asks certificate all ok, but when starting the actual transfer:
21:58:18.451 [INFO] Debug level set to 0
21:58:18.482 [INFO] Current debug output file: C:\DOCUME~1\ahh\LOCALS~1\Temp\jupload_8429376609891353764_log.txt
21:58:18.652 [INFO] Debug level set to 1
21:58:18.652 [INFO] Current debug output file: C:\DOCUME~1\ahh\LOCALS~1\Temp\jupload_8429376609891353764_log.txt
21:58:18.662 [INFO] JUpload applet, version 3.5.1 [SVN-Rev: 537] (compiled: 10/17/2008 10:26 PM), available at http://jupload.sourceforge.net/
21:58:18.662 [DEBUG] debugLevel: 1 (debugfile: C:\DOCUME~1\ahh\LOCALS~1\Temp\jupload_8429376609891353764_log.txt)
21:58:18.672 [INFO] maxFileSize: 2097152000
21:58:18.672 [ERROR] [javax.net.ssl.SSLHandshakeException] Received fatal alert: handshake_failure (Unable to access to the postURL: 'https://XXX.XXX.XXX.XXX:XXXX/XXX/modules/files/jupload/upload.php?id=5')
21:58:18.682 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
21:58:18.682 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
21:58:18.682 at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
21:58:18.682 at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
21:58:18.682 at java.io.BufferedOutputStream.flush(Unknown Source)
21:58:18.682 at java.io.DataOutputStream.flush(Unknown Source)
21:58:18.682 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.flush(HTTPConnectionHelper.java:911)
21:58:18.682 at wjhk.jupload2.upload.helper.HttpConnect.getProtocol(HttpConnect.java:263)
21:58:18.682 at wjhk.jupload2.policies.DefaultUploadPolicy.setServerProtocol(DefaultUploadPolicy.java:1773)
21:58:18.682 at wjhk.jupload2.policies.DefaultUploadPolicy.<init>(DefaultUploadPolicy.java:532)
21:58:18.682 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
21:58:18.682 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
21:58:18.682 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
21:58:18.682 at java.lang.reflect.Constructor.newInstance(Unknown Source)
21:58:18.682 at wjhk.jupload2.policies.UploadPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:106)
21:58:18.682 at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:153)
21:58:18.682 at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
21:58:18.682 at java.lang.Thread.run(Unknown Source)
21:58:25.512 [DEBUG] uploadPolicy parameter = DefaultUploadPolicy
21:58:25.522 [INFO] JUpload applet, version 3.5.1 [SVN-Rev: 537] (compiled: 10/17/2008 10:26 PM), available at http://jupload.sourceforge.net/
21:58:25.522 [DEBUG] debugLevel: 1 (debugfile: C:\DOCUME~1\ahh\LOCALS~1\Temp\jupload_8429376609891353764_log.txt)
21:58:25.522 [INFO] maxFileSize: 2097152000
21:58:29.678 [DEBUG] Action : Browse ...
21:58:35.396 [DEBUG] Action : Upload
21:58:35.596 [ERROR] [wjhk.jupload2.exception.JUploadIOException:javax.net.ssl.SSLHandshakeException] Received fatal alert: handshake_failure (javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure)
21:58:35.596 wjhk.jupload2.exception.JUploadIOException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
21:58:35.596 at wjhk.jupload2.upload.UploadFileData.uploadFile(UploadFileData.java:198)
21:58:35.596 at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:728)
21:58:35.596 at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:508)
21:58:35.596 Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
21:58:35.596 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
21:58:35.596 at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
21:58:35.596 at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
21:58:35.596 at java.io.BufferedOutputStream.write(Unknown Source)
21:58:35.596 at java.io.DataOutputStream.write(Unknown Source)
21:58:35.596 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.append(HTTPConnectionHelper.java:606)
21:58:35.596 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.write(HTTPConnectionHelper.java:870)
21:58:35.596 at wjhk.jupload2.upload.UploadFileData.uploadFile(UploadFileData.java:192)
21:58:35.596 ... 2 more
21:58:35.606 Caused by:
21:58:35.606 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
21:58:35.606 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
21:58:35.606 at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
21:58:35.606 at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
21:58:35.606 at java.io.BufferedOutputStream.write(Unknown Source)
21:58:35.606 at java.io.DataOutputStream.write(Unknown Source)
21:58:35.606 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.append(HTTPConnectionHelper.java:606)
21:58:35.606 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.write(HTTPConnectionHelper.java:870)
21:58:35.606 at wjhk.jupload2.upload.UploadFileData.uploadFile(UploadFileData.java:192)
21:58:35.606 at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:728)
21:58:35.606 at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:508)
Anonymous
Hum, hum,
I never tested the applet with a required client certificate.
Can you precise your OS, navigator ...
Can you also read these pages, that could help:
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/keystores.html
(and, for me, just as a reminder:
http://www.mozilla.org/projects/security/pki/jss/using_jss.html
)
I didn't try. But AFAIUnderstand, it should work for IE on windows. But perhaps some code is missing there.
Etienne