06-04-2010 01:12 AM
Thanks for sharing. I tried your codes, but I got TLSAlertException (alert description 50, means DECODE_ERROR) when intializing the TLS10Connection from the underlying SocketConnection. any comments?
06-13-2011 05:59 AM
I use your method to establish a STARTTLS connection.
and my code is as below:
conn = (SocketConnection)Connector.open("socket://"+url+"
is = conn.openDataInputStream（）；
TLS10Connection tlsSocket = new TLS10Connection (new StreamConnectionWrapper(conn, is, os)
is = tlsSocket.openDataInputStream（）；
But I got some exception, it seems that this connection does NOT established, tlsSocket.isConnectionEstablished() equals false.
Here is my logo:
250 BLU0-SMTP106.phx.gbl Hello [188.8.131.52]
220 2.0.0 SMTP server ready
NVS: delete 34
NVS: write 34
NVS: erase 3631
NVS: commit 542
no stack trace
need your help ,thanks