J2ME TLS 1.2/1.3 #1932
-
Does bouncy castle have a bctls jar for j2me? I am currently working on a Websocket library for j2me (as a hobby project) and planned to use bouncy castle to wrap the inputstream and outputstream for TLS support, but I couldn't locate bctls for j2me or anything earlier than jdk 1.5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems that after bouncy castle 164, which removed the deprecated lcrypto.tls APIs, there isn't a way since bctls was never made available for j2me (though I'd love for this to change!). My ide couldn't compile the source distribution and the last pre compiled version I found in the wayback machine was bouncy castle 160 j2me, it was the classes in the zip in the "zips" folder. I just used jar -cvf /.class to make a jar and it seems to actually work fine. I got my use case (TLS 1.2 to try and connect to modern services on old phones) working with a repackaged version of bouncy castle 160 (taking the classes from the pre compiled version and making them a jar since my idea was having trouble compiling it verbatim) for j2me, here's the jar of anyone wants it but I'd recommend building it yourself unless it's a hobby project because you shouldn't use pre compiled crypto libraries from strangers online. |
Beta Was this translation helpful? Give feedback.
It seems that after bouncy castle 164, which removed the deprecated lcrypto.tls APIs, there isn't a way since bctls was never made available for j2me (though I'd love for this to change!). My ide couldn't compile the source distribution and the last pre compiled version I found in the wayback machine was bouncy castle 160 j2me, it was the classes in the zip in the "zips" folder. I just used jar -cvf /.class to make a jar and it seems to actually work fine.
I got my use case (TLS 1.2 to try and connect to modern services on old phones) working with a repackaged version of bouncy castle 160 (taking the classes from the pre compiled version and making them a jar since my idea was having trou…