pub fn get_dns_names<R: AsRef<X509Ref>>(cert: &R) -> Result<Vec<String>, Error>
Return the DNS names in the subjectAlternativeNames of the certificate as well as its common name.
Result may contain duplicate items.