steffengy / schannel-rs

Schannel API-bindings for rust (provides an interface for native SSL/TLS using windows APIs)
MIT License
46 stars 50 forks source link

Allow certificate private key lookup #11

Closed sfackler closed 8 years ago

sfackler commented 8 years ago

We have to pull some ncrypt stuff in temporarily until retep998/winapi-rs#319 lands.

The lookup API does allow you to borrow a reference to an internally cached copy of the key, but I didn't want to complicate the API too much. I only actually need this to figure out which certificate in a PKCS12 archive has a private key associated.

r? @steffengy