Skip to content

Would like to get SSLSession from WebSocket on server to examine client certificates #890

Closed
@doyledavidson

Description

I am using "TLS Client Certificates" when connecting to my WSS server. Everything works great with my own TrustManager supplied via a SSLContext set to require client authentication.

However i can find no formal mechanism to access the SSLSession from the WebSocket/WebSocketImpl. The WebSocketImpl has a channel which is implemented by the SSLSocketChannel that has an SSLEngine which has a getSession() method. Could you please add methods to expose the SSLSession from which I can get the peer certificates.

Obviously this is valid only for TLS connections.

Thanks for consideration!

Doyle

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions