steffengy/schannel-rs

Strategy for self-signed certificates?

lilith opened this issue · 2 comments

Is it in scope to support custom CA certificates on a per-connection basis?

I understand that this will require a manual verification process per https://msdn.microsoft.com/en-us/library/windows/desktop/aa378740(v=vs.85).aspx

It's possible that there is an example of this in the Platform SDK.

Yep, this is definitely something I want to support. We should be able to mirror what oscrypto does - in the SChannel APIs the certificate chain construction and verification steps are separate so you construct the chain, and if the root matches one of your extra certs, we pass a flag to the verification step to skip the root trust check portion of the logic.

This is now supported!