This is a rust library for generating and validating ASAP tokens. It provides options for doing so that are compliant with the ASAP specification.
This crate currently depends on a valid installation of openssl. See the openssl crate's repo for more installation details relating to openssl.
It depends on openssl in order to convert a PEM-encoded private key to DER when instantiating from environment variables (see Generator::from_env()).
Other than that, this crate simply provides an ASAP Generator and an ASAP Validator, which generate and validate ASAP tokens according to the specification.
To install, add the following lines to your Cargo.toml:
```toml asap = "0.2"
Claims struct (which needsserde_derive = "1" serde = "1" ```
And see the documentation and API which should be straightforward enough for anything you'd need.
Currently, running the tests has some limitations:
http://localhost:8000
To run the tests, perform the following:
```bash
cargo run -p keyserver
RUSTTESTTHREADS=1 cargo test ```