Hi, On Thu, Nov 10, 2016 at 3:02 PM, Alexander Farber <[email protected]> wrote: > I have prepared a TLS-PSK client and server example at > https://github.com/afarber/jetty-newbie/tree/master/TlsPskServer/src/main/java/de/afarber/tlspskserver > by copying a test case from Bouncy Castle.
Correct me if I am wrong, but this uses *only* classes from BouncyCastle. There is no interaction with SSLContext, a keystore, SNI, etc. They redo everything from scratch, which is fine, but does not mixes with the JDK. > Do you think that I could connect it to embedded Jetty 9, by somehow wiring > the serverProtocol.getInputStream(), serverProtocol.getOutputStream()...? Well you can write a specialized Jetty EndPoint, I guess. That is where Jetty reads from and writes to. You can "trick" Jetty to read/write to/from that special EndPoint, and all the rest should be the same. Requires a deep understanding of the Jetty internals though. -- Simone Bordet ---- http://cometd.org http://webtide.com Developer advice, training, services and support from the Jetty & CometD experts. _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
