test/jdk/security/infra/java/security/cert/CertPathValidator/certification/LuxTrustCA.java
author rhalade
Thu, 14 Nov 2019 19:49:55 -0800
changeset 59106 11b96254ea92
permissions -rw-r--r--
8232019: Add LuxTrust certificate updates to the existing root program Reviewed-by: mullan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
59106
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     1
/*
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     4
 *
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     7
 * published by the Free Software Foundation.
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     8
 *
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    13
 * accompanied this code).
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    14
 *
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    18
 *
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    21
 * questions.
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    22
 */
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    23
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    24
/*
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    25
 * @test
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    26
 * @bug 8232019
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    27
 * @summary Interoperability tests with LuxTrust Global Root 2 CA
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    28
 * @build ValidatePathWithParams
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    29
 * @run main/othervm -Djava.security.debug=certpath LuxTrustCA OCSP
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    30
 * @run main/othervm -Djava.security.debug=certpath LuxTrustCA CRL
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    31
 */
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    32
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    33
/*
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    34
 * Obtain TLS test artifacts for LuxTrust CAs from:
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    35
 *
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    36
 * LuxTrust Global Root 2 CA sent test certificates as attachment
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    37
 */
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    38
public class LuxTrustCA {
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    39
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    40
    // Owner: CN=LuxTrust Global Qualified CA 3, O=LuxTrust S.A., C=LU
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    41
    // Issuer: CN=LuxTrust Global Root 2, O=LuxTrust S.A., C=LU
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    42
    // Serial number: 413dea1a28c2253845558e047f3e2a8b5b9baeae
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    43
    // Valid from: Fri Mar 06 06:12:15 PST 2015 until: Mon Mar 05 05:21:57 PST 2035
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    44
    private static final String INT = "-----BEGIN CERTIFICATE-----\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    45
            "MIIGcjCCBFqgAwIBAgIUQT3qGijCJThFVY4Efz4qi1ubrq4wDQYJKoZIhvcNAQEL\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    46
            "BQAwRjELMAkGA1UEBhMCTFUxFjAUBgNVBAoMDUx1eFRydXN0IFMuQS4xHzAdBgNV\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    47
            "BAMMFkx1eFRydXN0IEdsb2JhbCBSb290IDIwHhcNMTUwMzA2MTQxMjE1WhcNMzUw\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    48
            "MzA1MTMyMTU3WjBOMQswCQYDVQQGEwJMVTEWMBQGA1UECgwNTHV4VHJ1c3QgUy5B\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    49
            "LjEnMCUGA1UEAwweTHV4VHJ1c3QgR2xvYmFsIFF1YWxpZmllZCBDQSAzMIICIjAN\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    50
            "BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuZ5iXSmFbP80gWb0kieYsImcyIo3\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    51
            "QYg+XA3NlwH6QtI0PgZEG9dSo8pM7VMIzE5zq8tgJ50HnPdYflvfhkEKvAW2NuNX\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    52
            "6hi/6HK4Nye+kB+INjpfAHmLft3GT95e+frk/t7hJNorK44xzqfWZKLNGysEHIri\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    53
            "ddcePWOk3J/VMc9CsSemeZbmeZW1/xXeqolMS7JIDZ3+0DgVCYsKIK+b3sAQ8iqX\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    54
            "bQlQyvymG6QyoQoJbuEP23iawRMWKNWk+sjzOkPAAQDtgEEVdggzzudLSM04C5Cj\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    55
            "eLlLYuXgljler9bKRk9wW8nkareLZsn9uCDihGXGyC5m9jseGY1KAnlV8usLjBFA\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    56
            "iW5OCnzcOg+CPsVucoRhS6uvXcu7VtHRGo5yLysJVv7sj6cx5lMvQKAMLviVi3kp\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    57
            "hZKYfqVLAVFJpXTpunY2GayVGf/uOpzNoiSRpcxxYjmAlPKNeTgXVl5Mc0zojgT/\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    58
            "MZTGFN7ov7n01yodN6OhfTADacvaKfj2C2CwdCJvMqvlUuCKrvuXbdZrtRm3BZXr\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    59
            "ghGhuQmG0Tir7VVCI0WZjVjyHs2rpUcCQ6+D1WymKhzp0mrXdaFzYRce7FrEk69J\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    60
            "WzWVp/9/GKnnb0//camavEaI4V64MVxYAir5AL/j7d4JIOqhPPU14ajxmC6dEH84\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    61
            "guVs0Lo/dwVTUzsCAwEAAaOCAU4wggFKMBIGA1UdEwEB/wQIMAYBAf8CAQAwQwYD\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    62
            "VR0gBDwwOjA4BggrgSsBAQEKAzAsMCoGCCsGAQUFBwIBFh5odHRwczovL3JlcG9z\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    63
            "aXRvcnkubHV4dHJ1c3QubHUwagYIKwYBBQUHAQEEXjBcMCsGCCsGAQUFBzABhh9o\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    64
            "dHRwOi8vbHRncm9vdC5vY3NwLmx1eHRydXN0Lmx1MC0GCCsGAQUFBzAChiFodHRw\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    65
            "Oi8vY2EubHV4dHJ1c3QubHUvTFRHUkNBMi5jcnQwDgYDVR0PAQH/BAQDAgEGMB8G\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    66
            "A1UdIwQYMBaAFP8YKHb5SAUsoa7xKxsrslP4S3yzMDMGA1UdHwQsMCowKKAmoCSG\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    67
            "Imh0dHA6Ly9jcmwubHV4dHJ1c3QubHUvTFRHUkNBMi5jcmwwHQYDVR0OBBYEFGOP\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    68
            "wosDsauO2FNHlh2ZqH32rKh1MA0GCSqGSIb3DQEBCwUAA4ICAQADB6M/edbOO9iJ\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    69
            "COnVxayJ1NBk08/BVKlHwe7HBYAzT6Kmo3TbMUwOpcGI2e/NBCR3F4wTzXOVvFmv\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    70
            "dBl7sdS6uMSLBTrav+5LChcFDBQj26X5VQDcXkA8b/u6J4Ve7CwoSesYg9H0fsJ3\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    71
            "v12QrmGUUao9gbamKP1TFriO+XiIaDLYectruusRktIke9qy8MCpNSarZqr3oD3c\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    72
            "/+N5D3lDlGpaz1IL8TpbubFEQHPCr6JiwR+qSqGRfxv8vIvOOAVxe7np5QhtwmCk\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    73
            "XdMOPQ/XOOuEA06bez+zHkASX64at7dXru+4JUEbpijjMA+1jbFZr20OeBIQZL7o\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    74
            "Est+FF8lFuvmucC9TS9QnlF28WJExvpIknjS7LhFMGXB9w380q38ZOuKjPZpoztY\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    75
            "eyUpf8gxzV7fE5Q1okhnsDZ+12vBzBruzJcwtNuXyLyIh3fVN0LunVd+NP2kGjB2\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    76
            "t9WD2Y0CaKxWx8snDdrSbAi46TpNoe04eroWgZOvdN0hEmf2d8tYBSJ/XZekU9sC\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    77
            "Aww5vxHnXJi6CZHhjt8f1mMhyE2gBvmpk4CFetViO2sG0n/nsxCQNpnclsax/eJu\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    78
            "XmGiZ3OPCIRijI5gy3pLRgnbgLyktWoOkmT/gxtWDLfVZwEt52JL8d550KIgttyR\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    79
            "qX81LJWGSDdpnzeRVQEnzAt6+RebAQ==\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    80
            "-----END CERTIFICATE-----";
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    81
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    82
    // Owner: T=Private Person, SERIALNUMBER=00100978855105608536,
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    83
    // GIVENNAME=TokenPRIActive, SURNAME=Test, CN=TokenPRIActive Test, C=DE
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    84
    // Issuer: CN=LuxTrust Global Qualified CA 3, O=LuxTrust S.A., C=LU
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    85
    // Serial number: 3814b6
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    86
    // Valid from: Wed Jul 10 04:36:12 PDT 2019 until: Sun Jul 10 04:36:12 PDT 2022
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    87
    private static final String VALID = "-----BEGIN CERTIFICATE-----\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    88
            "MIIG/jCCBOagAwIBAgIDOBS2MA0GCSqGSIb3DQEBCwUAME4xCzAJBgNVBAYTAkxV\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    89
            "MRYwFAYDVQQKDA1MdXhUcnVzdCBTLkEuMScwJQYDVQQDDB5MdXhUcnVzdCBHbG9i\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    90
            "YWwgUXVhbGlmaWVkIENBIDMwHhcNMTkwNzEwMTEzNjEyWhcNMjIwNzEwMTEzNjEy\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    91
            "WjCBizELMAkGA1UEBhMCREUxHDAaBgNVBAMTE1Rva2VuUFJJQWN0aXZlIFRlc3Qx\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    92
            "DTALBgNVBAQTBFRlc3QxFzAVBgNVBCoTDlRva2VuUFJJQWN0aXZlMR0wGwYDVQQF\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    93
            "ExQwMDEwMDk3ODg1NTEwNTYwODUzNjEXMBUGA1UEDBMOUHJpdmF0ZSBQZXJzb24w\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    94
            "ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDb8l2RJNS7iA9hJFj8aR25\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    95
            "kpU/ZQTHl8Z9yrTLhr4VcMWMxqeOQUcUU27SgIuFvU9s/68OuaIhxyu6eohaGCLC\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    96
            "wzFFRg8OlsUYuI1QtUEliIjmHOMDqSNIt093+SDV64osnHw5fpfy8V0zehEkd7QR\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    97
            "t7Aq38ixCQyxCmNIDJeDCKJT+wwdLaKuw/4SEpR9sygSxZ3kG6kF4icsgYuiOCRx\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    98
            "+DrS1wP9kcrQVWQ0bJbGzwxLZXCHaJsWE1Y17mQAO4Iv/9icqDkP3bZBU5GCgbNT\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
    99
            "JEP2GiUUPU3nL41Tlq03+iDmkS2bpWCtFZmTgUg+1nJEb7PSCJ9VcoflOOFgX/ku\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   100
            "TQCJWwhsgyOneEZAg7PpzOj2msxA9RWI88FzRnX/zyjWEpdUCVJ85hFw8u+UZ7k1\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   101
            "eF37oOpgNxQMJ+/ey7huneTzyhpFz/TqJpfMmwaGbPL6zmPLAMQalIPQj+68zlcX\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   102
            "qyeKVbZU74Vm051kXb/3qs6CeUpT4HrY3UmHWLvOdNkCAwEAAaOCAiUwggIhMB8G\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   103
            "A1UdIwQYMBaAFGOPwosDsauO2FNHlh2ZqH32rKh1MGYGCCsGAQUFBwEBBFowWDAn\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   104
            "BggrBgEFBQcwAYYbaHR0cDovL3FjYS5vY3NwLmx1eHRydXN0Lmx1MC0GCCsGAQUF\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   105
            "BzAChiFodHRwOi8vY2EubHV4dHJ1c3QubHUvTFRHUUNBMy5jcnQwggEuBgNVHSAE\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   106
            "ggElMIIBITCCARMGC4g3AQOBKwEBCgMFMIIBAjAqBggrBgEFBQcCARYeaHR0cHM6\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   107
            "Ly9yZXBvc2l0b3J5Lmx1eHRydXN0Lmx1MIHTBggrBgEFBQcCAjCBxgyBw0x1eFRy\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   108
            "dXN0IENlcnRpZmljYXRlIG5vdCBvbiBTU0NEIGNvbXBsaWFudCB3aXRoIEVUU0kg\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   109
            "VFMgMTAyIDA0MiBOQ1AgY2VydGlmaWNhdGUgcG9saWN5LiBLZXkgR2VuZXJhdGlv\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   110
            "biBieSBDU1AuIFNvbGUgQXV0aG9yaXNlZCBVc2FnZTogU2lnbmF0dXJlLCBEYXRh\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   111
            "IG9yIEVudGl0eSBBdXRoZW50aWNhdGlvbiBhbmQgRGF0YSBFbmNyeXB0aW9uLjAI\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   112
            "BgYEAI96AQEwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sdXh0cnVzdC5s\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   113
            "dS9MVEdRQ0EzLmNybDARBgNVHQ4ECgQISND+8GZyXrcwDgYDVR0PAQH/BAQDAgTw\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   114
            "MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggIBAA54w2kGy+hJsYSyrQ5C\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   115
            "ft0rasUHQviEiy31H2Z1lh4yEPLiuUsaepdzG4bov/J1RewX1fL7fvErraKK7nNr\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   116
            "ioAXNElHtC0wfxGx0xGaCz7xsZIDFgpzyPqS+vd8VKbRCOY66AI+3aPiatCsk+BM\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   117
            "Hp9GwW3B1e5EOgXiWVNxzYFtav5QSAj28IEV7ZuN2BIiU+phawRaoFy+4glMB7zE\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   118
            "J5AM/Zfi50Q85ljy1kWUueFE3VNDafAUGOF5gTHvkKqj6LznUkqcT8m96Wd0IbF2\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   119
            "BLYjnKPF6lGJsivErGqMwQIhlUUMkRQ13/hftL12rIiSjC1C/6cnbxOjWEOGnler\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   120
            "Qn2zu2OTGnnrYxp/hojdZggb5Yt9mkM3EmyuqP1W4g0xtMv9q97swm/fHz/rDh8T\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   121
            "MqrEOJzz284IM0DXjXq1wkmsZ/6/ueCyf0oBN0csvYspZKmLAydZ+jZmjdKKxX+N\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   122
            "dreauHgOq1knLHkMb/YIyA+Oh6SBlNXL4Iae8APQcRGnylHQ1lc/YHTqWh8N1tmn\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   123
            "no5r1kVJBYYtkI3oufaLtP7JIazteZlqTN+tubMJhO4xGgt6bqEpQiid9r3UnIjR\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   124
            "esLYxXS5qRwSoOSleXT98H75+Ok1WR3ciD4exBR8/KcUtDITvDJhkBHnRHm40jFs\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   125
            "5UbHFf98S6G9dqzsqW8+2Bpn\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   126
            "-----END CERTIFICATE-----";
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   127
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   128
    // Owner: T=Private Person, SERIALNUMBER=00100918135105608625,
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   129
    // GIVENNAME=TokenPRIREV, SURNAME=Test, CN=TokenPRIREV Test, C=LU
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   130
    // Issuer: CN=LuxTrust Global Qualified CA 3, O=LuxTrust S.A., C=LU
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   131
    // Serial number: 3814b8
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   132
    // Valid from: Wed Jul 10 04:36:48 PDT 2019 until: Sun Jul 10 04:36:48 PDT 2022
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   133
    private static final String REVOKED = "-----BEGIN CERTIFICATE-----\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   134
            "MIIG+DCCBOCgAwIBAgIDOBS4MA0GCSqGSIb3DQEBCwUAME4xCzAJBgNVBAYTAkxV\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   135
            "MRYwFAYDVQQKDA1MdXhUcnVzdCBTLkEuMScwJQYDVQQDDB5MdXhUcnVzdCBHbG9i\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   136
            "YWwgUXVhbGlmaWVkIENBIDMwHhcNMTkwNzEwMTEzNjQ4WhcNMjIwNzEwMTEzNjQ4\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   137
            "WjCBhTELMAkGA1UEBhMCTFUxGTAXBgNVBAMTEFRva2VuUFJJUkVWIFRlc3QxDTAL\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   138
            "BgNVBAQTBFRlc3QxFDASBgNVBCoTC1Rva2VuUFJJUkVWMR0wGwYDVQQFExQwMDEw\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   139
            "MDkxODEzNTEwNTYwODYyNTEXMBUGA1UEDBMOUHJpdmF0ZSBQZXJzb24wggGiMA0G\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   140
            "CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCcm7y4c/D58u6g3m6HGdfiqDXa2yEl\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   141
            "H2cAeSb85fsAX08iXfa/U/kmFqqycwp2nsJdfor6HEEqHsmozyjjIWHDEsq+cUre\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   142
            "SO6d2Ag29MrxsAWZ1XAol40FcxNN+yEL9Xs5doqqcbz3OoKdxkoWVdYq3D7peizF\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   143
            "OER4M2XA0KSLiKXDapDCfTVLE6qRG6Cn5mqnlqbUtkI6vSsda5mWLSNe4Qw/PIMw\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   144
            "v7ZDn5dHeHoV6UpZC95Ole5vMQfjAOsy4nRc1zofQz7iPw4ClNzDQSuonaAKSk3Y\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   145
            "1KjWPmHshb6BoANL+ce1KuWESKV3D5lBkVVLTeoBkWQu7ViJviF2HE5UoPRSGijO\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   146
            "nmGOTZRsjOJXPe7/pEq9SQ477EufnSsoCj1cPCtaowbsO7oswzV/axKMhhZf6nU7\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   147
            "0wd9xUuMgMRKBfi026mYK7pdxJ85qE8qKlqeNprje+g1sjxMDbMHARA427Px0IUJ\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   148
            "mzIJk0ysAQvbqQVe8QQM/f+PH3mUkXR02H8CAwEAAaOCAiUwggIhMB8GA1UdIwQY\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   149
            "MBaAFGOPwosDsauO2FNHlh2ZqH32rKh1MGYGCCsGAQUFBwEBBFowWDAnBggrBgEF\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   150
            "BQcwAYYbaHR0cDovL3FjYS5vY3NwLmx1eHRydXN0Lmx1MC0GCCsGAQUFBzAChiFo\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   151
            "dHRwOi8vY2EubHV4dHJ1c3QubHUvTFRHUUNBMy5jcnQwggEuBgNVHSAEggElMIIB\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   152
            "ITCCARMGC4g3AQOBKwEBCgMFMIIBAjAqBggrBgEFBQcCARYeaHR0cHM6Ly9yZXBv\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   153
            "c2l0b3J5Lmx1eHRydXN0Lmx1MIHTBggrBgEFBQcCAjCBxgyBw0x1eFRydXN0IENl\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   154
            "cnRpZmljYXRlIG5vdCBvbiBTU0NEIGNvbXBsaWFudCB3aXRoIEVUU0kgVFMgMTAy\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   155
            "IDA0MiBOQ1AgY2VydGlmaWNhdGUgcG9saWN5LiBLZXkgR2VuZXJhdGlvbiBieSBD\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   156
            "U1AuIFNvbGUgQXV0aG9yaXNlZCBVc2FnZTogU2lnbmF0dXJlLCBEYXRhIG9yIEVu\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   157
            "dGl0eSBBdXRoZW50aWNhdGlvbiBhbmQgRGF0YSBFbmNyeXB0aW9uLjAIBgYEAI96\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   158
            "AQEwMwYDVR0fBCwwKjAooCagJIYiaHR0cDovL2NybC5sdXh0cnVzdC5sdS9MVEdR\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   159
            "Q0EzLmNybDARBgNVHQ4ECgQIS0KUXpWyku0wDgYDVR0PAQH/BAQDAgTwMAwGA1Ud\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   160
            "EwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggIBAFSnezuyeRO0sh9e8/1N+2RE6Uhb\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   161
            "RIdLKmaS8hMOyUNBapnHfJAdOn7j767qWQjRop5VNCcv0zDOxAqApxFiz4gJdzBY\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   162
            "FVrEVwYos8a3BHLXNxfwIWEJ6EjlqI2qI3NjqK8m4M8LTq4G94V2/MOFVpXeCLju\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   163
            "r0s+XZep2Sk9J4ofUOc8Gp7IZNhPzIlfKQ+KhnWovde4bpL3zRpp4u7Y580XsBuN\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   164
            "kow2Eg84tRzSVizmgLPuRbySHuMo1jGIP7F9FdtOC8VVSjntfCXSEQqOvpH4YZ8S\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   165
            "V4qP17CQHPWW1kOHAyXpkAjU+6SOlmF76Adv9nQFTZ6DAnKqiuxmi8EVCv96aFD7\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   166
            "Ih+zBF7kj7fghPjUzsVdB6gI4VwuFCXEaAfWlxJS67s1hKnsCyqX3cu+Gnq9aRt+\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   167
            "08iaTVEdrKL95AYYobVbnGJ7bH87SpenjLL+CDctXNNDlpJZ8eRYcQe+Q4dg+8L8\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   168
            "X8tkXBeRbiZD1U7XwVBnKF6sJmhA4F/h/EJzwX0lp7EU6EO91bSiwD2NFVs+64UR\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   169
            "9lftfFFm5In2N3vjDR/3nrCf3Jq9f0g7bTrNJmo+hc0+fD+zlAhZAx+ii2xE1cY1\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   170
            "KLH2zXNzPUgIqYGdVQwn1TUFJN8JgGKsXwc+P51nEpgf6JVyK1m7EtVGtr9gF7DI\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   171
            "P+4VSqTbTp4/l5n0\n" +
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   172
            "-----END CERTIFICATE-----";
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   173
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   174
    public static void main(String[] args) throws Exception {
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   175
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   176
        ValidatePathWithParams pathValidator = new ValidatePathWithParams(null);
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   177
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   178
        if (args.length >= 1 && "CRL".equalsIgnoreCase(args[0])) {
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   179
            pathValidator.enableCRLCheck();
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   180
        } else {
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   181
            // OCSP check by default
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   182
            pathValidator.enableOCSPCheck();
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   183
        }
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   184
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   185
        // Validate valid
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   186
        pathValidator.validate(new String[]{VALID, INT},
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   187
                ValidatePathWithParams.Status.GOOD, null, System.out);
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   188
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   189
        // Validate Revoked
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   190
        pathValidator.validate(new String[]{REVOKED, INT},
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   191
                ValidatePathWithParams.Status.REVOKED,
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   192
                "Wed Jul 10 04:48:49 PDT 2019", System.out);
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   193
    }
11b96254ea92 8232019: Add LuxTrust certificate updates to the existing root program
rhalade
parents:
diff changeset
   194
}