@Test
public void testExtractX509CertURIsNull() throws Exception {

    try (InputStream inStream = new FileInputStream("src/test/resources/valid_cn_x509.cert")) {
        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream);
        List<String> uris = Crypto.extractX509CertURIs(cert);
        assertTrue(uris.isEmpty());
    }
    try (InputStream inStream = new FileInputStream("src/test/resources/x509_altnames_noip.cert")) {
        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream);
        List<String> uris = Crypto.extractX509CertURIs(cert);
        assertTrue(uris.isEmpty());
    }
}