Crates.io | certain |
lib.rs | certain |
version | 1.1.0 |
source | src |
created_at | 2022-10-25 22:58:26.937045 |
updated_at | 2023-05-19 01:01:46.398756 |
description | Certificate transparency log streamer. |
homepage | https://github.com/dev-bio/certain |
repository | https://github.com/dev-bio/certain |
max_upload_size | |
id | 697362 |
size | 24,499 |
Client for listening to certificate transparency logs.
To use certain
, add this to your Cargo.toml
:
[dependencies]
certain = "1.1.0"
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
})
}
All contributions are welcome, don't hesitate to open an issue if something is missing!