Function sequoia_net::dane::get

source ·
pub async fn get(email_address: impl AsRef<str>) -> Result<Vec<Result<Cert>>>
Expand description

Retrieves certificates that contain User IDs with a given e-mail address using the DANE protocol.

This function unconditionally validates DNSSEC records and returns the found certificates only on validation success.

Examples

let email_address = "john@example.com";
let certs = dane::get(email_address).await?;