pub fn generate_generic<'a, F, T, L>(
    cert: &ValidCert<'a>,
    fqdn: F,
    ttl: T,
    size_target: L
) -> Result<Vec<String>>
where F: AsRef<str>, T: Into<Option<Duration>>, L: Into<Option<usize>>,
Expand description

Generates a DANE record for the given cert in the zonefile format.

This is like generate, but uses the generic syntax for servers that do not support the OPENPGPKEY RRtype.

Only user IDs with email addresses in fqdn are considered.

If ttl is None, records are cached for three hours.

We make an effort to shrink the certificate so that it fits within size_target. However, this is a best-effort mechanism, and we may emit larger resource records. If size_target is None, we try to shrink the certificates to 12k.