-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch client certificate from a connection and DH creation #133
Comments
there should be a way to distinguish clients by certificate. it's probably not very hard to tweak the API to allow querying the client certificate use. |
@ondrap You create DHParam via |
For the remaining part I don't find this easy at all. I guess application code will want authentication info in both cases. So I'm thinking the client CertificateChain could be an additional argument to |
FWIW, in OpenSSL the session ticket retains only the leaf certificate (not the full chain) and the (cached) validation status. A server using session tickets should be able to run completely stateless (no per session state, just a bit of state for a periodically changing ticket encryption key, current for encoding/decoding and previous just for decoding). On resumption servers can then extract the client certificate and wether it is valid or not from the session ticket. Thus with a full handshake servers have access to the complete client certificate chain, but with resumption only the leaf certificate and its validation status. With hs-tls, the full handshake case can be handled via This then means that servers will need to provide an interface to query the peer leaf certificate and its validation status in a resumed session (whether by ticket or stateful session-ID-based server-side cache). That interface can be a resumption callback that gets access to the leaf certificate and validation result. Alternatively, if I'm wrong about the issue that's requesting leaf certificates in |
If I used the client certificates, is there a way to fetch the client-provided certificate? If I wanted to use the client certificate to distinguish the clients, is there a way to do it?
Also, is there a way to create the DHParam? I see there is a section to set DHparam in server configuration, but didn't find a way to actually create the datatype.
The text was updated successfully, but these errors were encountered: