rustls-cng 0.3.2

Windows CNG API bridge for rustls
docs.rs failed to build rustls-cng-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rustls-cng-0.6.0

Windows CNG bridge for rustls

This crate allows to use the Windows CNG private keys together with rustls for both client and server side of the TLS channel.

Rationale: in many situations it is required to use non-exportable private certificate chains from the Windows certificate store. rustls-cng can use such chains in the rustls context.

Supported key/certificate types: RSA, ECDSA/ECDH (secp256r1 and secp384r1 curves).

Documentation

Documentation is available here.

Usage

The central struct to use in rustls-cng is CngSigningKey which can be constructed from the low-level NCryptKey handle. The instance of CngSigningKey can be then be used in rustls in the custom ResolvesServerCert or ResolvesClientCert implementation.

See the examples directory for usage examples.

License

Licensed under MIT or Apache license (LICENSE-MIT or LICENSE-APACHE)