@Test
public void testExtractX509CertDnsNmaes() throws Exception{

    try (InputStream inStream = new FileInputStream("src/test/resources/x509_altnames_singleip.cert")) {
        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream);
        List<String> dnsNames = Crypto.extractX509CertDnsNames(cert);
        assertEquals(dnsNames.get(0), "production.athenz.ostk.athenz.cloud");
        assertEquals(dnsNames.get(1), "1001.instanceid.athenz.ostk.athenz.cloud");
    }
}