#nss #certificate #webpki #bindings #glue

nss-webpki

Glue for using webpki with NSS

2 unstable releases

Uses old Rust 2015

0.3.2 Oct 12, 2016
0.0.1 Sep 15, 2016

#8 in #nss

39 downloads per month
Used in nss-hyper

MPL-2.0 license

5KB
88 lines

NSS Bindings for Rust

This is a very incomplete project for enabling Rust code to use the NSS cryptography library. Currently it exposes only the minimum needed to be a simple TLS client, and is almost completely lacking in documentation. Also, there isn't yet support for building on OSes where NSS and NSPR aren't in the default place for system-installed libraries (i.e., Windows and Mac OS).

Other crates in this repository:

  • nss-sys defines low-level bindings that directly reflect the C code.

  • nss-webpki is a simple wrapper for the webpki crate, for verifying certificate lists obtained through NSS. (NSS's own certificate verification code is old and doesn't follow modern best practices.)

  • nss-hyper implements the SslClient trait for the hyper HTTP library, using NSS (with webpki for certificate verification). It has an example program (client) that makes HTTPS requests to URLs given as arguments and writes the result to stdout.

Dependencies

~6–15MB
~255K SLoC