-
Notifications
You must be signed in to change notification settings - Fork 202
Description
Hi! We have a use case where our users can pin certificates via their fingerprint, with ureq 2 this was really simple as one could pass a full rustls ClientConfig to ureq using the AgentBuilder's tls_config
function and wire that up to use a custom verifier through calling with_custom_certificate_verifier
on that rustls ClientConfig builder.
With ureq3 the TlsConfig is a ureq specific type that does not expose setting up anything like that, at least not FWICT.
Am I right with my understanding that we would need to impl our own Connector, probably copying most of the impl<In: Transport> Connector<In> for RustlsConnector
to be able to manage the same in ureq 3? Mostly asking to ensure I'm not overlooking something obvious.
And as fingerprint validation is a very simple way for some environments to ensure a safe and trusted TLS connection without the need for any cert store/CA, would you be open for making this a bit simpler to set up–if I did not overlook something existing already.