5 releases (2 stable)

1.1.0 May 19, 2023
1.0.0 Feb 21, 2023
0.2.0 Oct 31, 2022
0.1.1 Oct 28, 2022
0.1.0 Oct 25, 2022

#2274 in Cryptography

MIT license

24KB
481 lines

Certain

Certificate Transparency Log Utility

dependency status Documentation License


Client for listening to certificate transparency logs.

Usage

To use certain, add this to your Cargo.toml:

[dependencies]
certain = "1.1.0"

Example

The following example will stream the latest certificates appended to the log.

use std::time::{Duration};

use certain::{
    
    StreamConfig,
    StreamError, 
};

fn main() -> Result<(), StreamError> {
    let config = StreamConfig::new("https://ct.googleapis.com/logs/argon2022/")
        .timeout(Duration::from_secs(1))
        .workers(4)
        .batch(1);

    certain::stream(config, |entry| {
        println!("{entry:#?}");
        true // continue
    })
}

Contributing

All contributions are welcome, don't hesitate to open an issue if something is missing!

License

MIT

Dependencies

~18–31MB
~564K SLoC