[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Is PSK possible with Jetty?
|
Hi,
On Thu, Nov 10, 2016 at 3:02 PM, Alexander Farber
<alexander.farber@xxxxxxxxx> 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.