package OpenXPKI::Test::CertHelper::Database;
use Moose;
=head1 NAME

OpenXPKI::Test::CertHelper::Database - Test helper that contains raw
certificate data to be inserted into the database.

=head1 DESCRIPTION

    # instance of OpenXPKI::Test::CertHelper::Database::Cert
    my $cert = $db->cert("alpha-alice-1");

    print $cert->id, "\n";     # certificate identifier
    print $cert->data, "\n";   # PEM encoded certificate

The following predefined test certificates are available:

=over

=item * B<alpha> PKI realm

=over 1

=item * set 1 (expired certificates)

    $db->cert("alpha-root-1")      # self signed Root Cert
    $db->cert("alpha-signer-1")    # Signing CA   (signed by Root Cert)
    $db->cert("alpha-alice-1")     # client Alice (signed by Signing CA)
    $db->cert("alpha-bob-1")       # client Bob   (signed by Signing CA)
    $db->cert("alpha-scep-1")      # SCEP service (signed by Root Cert)
    $db->cert("alpha-datavault-1")     # self signed DataVault Cert

=item * set 2 (valid till year 2100)

    $db->cert("alpha-root-2")      # self signed Root Cert
    ...

=item * set 3 (valid from 2100 till 2105)

    $db->cert("alpha-root-3")      # self signed Root Cert
    ...

=item * set 4 (valid till year 2100)

    ...
    $db->cert("alpha_alice_4")     # client Alice: a revoked certificate
    $db->cert("alpha_bob_4")       # client Bob    a revoked certificate
    $db->crl("alpha-4")            # PEM encoded Certificate Revocation List
    ...

=back

=item * B<beta> PKI realm (valid till year 2105)

    $db->cert("beta-root-1")      # self signed Root Cert
    $db->cert("beta-signer-1")    # Signing CA   (signed by Root Cert)
    $db->cert("beta-alice-1")     # client Alice (signed by Signing CA)
    $db->cert("beta-bob-1")       # client Bob   (signed by Signing CA)
    $db->cert("beta-scep-1")      # SCEP service (signed by Root Cert)
    $db->cert("beta-datavault-1")     # self signed DataVault Cert

=item * B<gamma> PKI realm (valid till year 2105)

    $db->cert("gamma-bob-1")       # "Orphan" client cert without known Signing or Root CA

=back

=cut

# Project modules
use OpenXPKI::Test::CertHelper::Database::Cert;

################################################################################
# Other attributes
has _certs_by_alias => (
    is => 'rw',
    isa => 'HashRef[OpenXPKI::Test::CertHelper::Database::Cert]',
    traits => ['Hash'],
    lazy => 1,
    builder => '_build_certs',
    handles => {
        all_certs => 'values',
        all_cert_names => 'keys',
    },
);

has _crls => (
    is => 'rw',
    isa => 'HashRef[Str]',
    lazy => 1,
    builder => '_build_crl',
);

=head1 METHODS

=head2 all_certs

Returns a list with all cert objects of type L<OpenXPKI::Test::CertHelper::Database::Cert> handled by this class.

=head2 all_cert_names

Returns a list with the internal short names of all test certificates
handled by this class.

=cut



=head2 pkcs7

Returns a HashRef: C<certificate alias => PKCS7 container>.

The container consists of the certificate chain for each client: Root, Signing
CA and Client certificate.

=cut
has pkcs7 => (
    is => 'rw',
    isa => 'HashRef[Str]',
    lazy => 1,
    builder => '_build_pkcs7',
);

################################################################################
# Methods

=head2 cert

Returns an instance of L<OpenXPKI::Test::CertHelper::Database::Cert> with the
requested test certificate data specified by the given alias.

    print $db->cert("beta-alice-1")->id, "\n";

=cut
sub cert {
    my ($self, $certname) = @_;
    return $self->_certs_by_alias->{$certname} || die "A test certificate named '$certname' does not exist.";
}

=head2 cert_by_id

Returns an instance of L<OpenXPKI::Test::CertHelper::Database::Cert> with the
requested test certificate data by the given id.

    print $db->cert("qBHtYgX4yx9Bl2GI4EHMaFYF6MY")->id, "\n";

=cut
sub cert_by_id {
    my ($self, $certid) = @_;
    my @match = grep { $_->id eq $certid } $self->all_certs;
    die "There is no certificate with id '$certid'." unless scalar @match;
    return $match[0];
}

=head2 crl

Returns the PEM encoded CRL for the given realm / generation.

    print $db->crl("alpha-4"), "\n";

=cut
sub crl {
    my ($self, $realm_gen) =@_;
    return $self->_crls->{$realm_gen} || die "A CRL named '$realm_gen' does not exist.";
}

=head2 all_cert_ids

Returns an ArrayRef with the internal "identifier" of all test certificates
handled by this class.

=cut
sub all_cert_ids {
    my $self = shift;
    return [ map { $_->id } $self->all_certs ];
}

=head2 cert_names_where

Returns a list with the internal short names of all test certificates
where the given attribute has the given value.

=cut
sub cert_names_where {
    my ($self, $attribute, $value) = @_;
    my @result = grep { $self->cert($_)->db->{$attribute} eq $value } $self->all_cert_names;
    die "No test certificates found where $attribute == '$value'" unless scalar(@result);
    return @result;
}

=head2 cert_names_by_realm_gen

Returns a list with the internal short names of all test certificates
in the given PKI realm and generation.

=cut
sub cert_names_by_realm_gen {
    my ($self, $realm, $gen) = @_;
    my @result = grep {
        $self->cert($_)->db->{pki_realm} eq $realm
        and $self->cert($_)->db_alias->{alias} =~ / - $gen $ /msx
    } $self->all_cert_names;
    die "No test certificates found for realm '$realm', generation $gen" unless scalar(@result);
    return @result;
}

#
# Methods below were copied from autogenerated code by tools/testdata/_pem-to-certhelper.pl
#
sub _build_pkcs7 {
    return {
        'alpha-alice-1' => "-----BEGIN PKCS7-----\nMIIK3gYJKoZIhvcNAQcCoIIKzzCCCssCAQExADALBgkqhkiG9w0BBwGgggqxMIID\njzCCAnegAwIBAgIBAjANBgkqhkiG9w0BAQsFADBYMRMwEQYKCZImiZPyLGQBGRYD\nT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGDAW\nBgNVBAMMD0FMUEhBIFJvb3QgQ0EgMTAiGA8yMDA2MDEwMTAwMDAwMFoYDzIwMDcw\nMTMxMjM1OTU5WjBYMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZImiZPyLGQB\nGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGDAWBgNVBAMMD0FMUEhBIFJvb3Qg\nQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKUNCn56ksG3xJsz\nHJNDH9ZiYB9q1ftkhbqhT4+0mlQ9IxMLCfiwM/2niYPBiM+whwO81/AVeUI7Bg0K\nA9qh9r02o0Y5MrrrPqq2VmFVf9o8TdTTeQh3JmjWFkAiPFoeEmgVVGBB0MkORhbV\n9jaBmdM1kZIHmE7D5lN7dv3LS64DLgnsxGdULe8XX1bRMggh5X77fRaDJioloVrD\nspQgxM9ZaQhNb4OTr5mZN9vRRasH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MIIBCgKCAQEA\n3/zxX+KeLmH6VsulY7YEJ1ytezl4WhqUWqiMjayllJHn5ENeBi1Iv/ICB3v75272\nzs7SgxnYbYuuOw0QsTQvuulrAY4ThcnxKjm+3rfEcDftPbeP67Zq67aEsAQqqD+c\nEkGTb/N2tfooIB2+JydG4MWhM1b/F4LYqE9POk/VmQF2GIG7LC5UgxdMHn6Axeup\nTTUKE5CiIfqItWNmJzOBAP6bT0iuJJtD3DTrPVvTDXwgRb9quysPdz3cOM8/xv//\nFgQEVN3i9NGjV9N/+Xk+cIDt8NEUYw91FxyMj/ked4CuIJNqUBchf2NhDa27gqc3\nDa9UPhocUzNJWnspRgCaRwIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBRo\nXBwtpUyrt65dG68Kkyo6DDigvDAfBgNVHSMEGDAWgBQTCsx33o7nmzfQ5U2MJnL3\n1VxtTTANBgkqhkiG9w0BAQsFAAOCAQEA40MTTguByypBn3liQ5RWRgWC4aXcQKE8\n13MPCPeTFJxAPxYISGuAoHpwCRUXLN/eZXRG23vfBoICdUeeLEvjQp48miBmIbvW\nc1V3UDLDeZ+b1u8/kxwvMb4d+O3o1gcK5yEpR+1skyPQhiaWho5ejw4oWbQlyiXh\npOgfonUzEaDumDxggdTyHTkBQCkY6VwD6pvXcv23BXXNN7yYjelWPYCVTM9VVi12\nVU1gGKVDWYwXoYZSnM79F8snA6ngqq08Ht5o45bYKa5VuUN1ZlgEZDZqCYLxqamy\njuZp/8pwp3I+AEV+HjUdUxGt3lp+2OgLmWP47ZEQkyd6hRyIj5mZOqEAMQA=\n-----END PKCS7-----",
    };
}
sub _build_crl {
    return {
        'alpha-2' => "-----BEGIN X509 CRL-----\nMIICFjCB/wIBATANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQBGRYDT1JH\nMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNV\nBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMhcNMTkwNTA4MTcyNjUwWhgPMjA2OTA0MjUx\nNzI2NTBaMF4wOgIBDRcNMTkwNTA4MTcyNjUwWjAmMAoGA1UdFQQDCgEBMBgGA1Ud\nGAQRGA8yMDEwMDMwNDA3MDgzMFowIAIBDhcNMTkwNTA4MTcyNjUwWjAMMAoGA1Ud\nFQQDCgEFoA4wDDAKBgNVHRQEAwIBADANBgkqhkiG9w0BAQsFAAOCAQEAEE956aYS\niCDMN8xZrjWE1Is0MDtsL2vTTecJr24AJcL8pC04I6nZlRb9H4F1X5q2HMFclpou\n5TxT/JsKOmdVX8BApogBRC7q/z4GkS/h/sOTMjLQ5/VOLZW3kTS9rVlY7TLG5tC8\nDo2+1k+FrBUdDa1EEy7omeIa8g06EpT3zUhGBotYlo34cjSJSyXjfJ+1qZwDE6bQ\n+cE9bwr76rqT3pYdG9xhRLffwrePWplPknsgszKX4HkZocMFfFkAe0WPRU3tuSZN\nLiRXEd7OCzF8TjdQfQWD6OhBbqABMYwqw4tGEm1osF7gYFUkLMwsiZimhgCQ4Uyj\nHvdHqZe9aBXp7A==\n-----END X509 CRL-----",
    };
}
sub _build_certs {
    return {
        'alpha-alice-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Alice 1',
            name => 'alpha-alice-1',
            db => {
                authority_key_identifier => '93:D3:15:2C:E6:94:C1:D1:39:A9:28:DC:2D:0B:F6:6D:E7:2F:DF:CB',
                cert_key => '5',
                data => "-----BEGIN CERTIFICATE-----\nMIIDhDCCAmygAwIBAgIBBTANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMTAiGA8yMDA2MDEwMTAwMDAwMFoY\nDzIwMDcwMTMxMjM1OTU5WjBdMRMwEQYKCZImiZPyLGQBGRYDT1JHMRg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ts',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'UDFhlBTPFnXDz_tiXZ_FZ7MuKng',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Alice 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '1F:0A:30:23:9F:60:DA:44:F9:42:30:5D:71:C6:AF:7B:86:81:91:26',
            },
            db_alias => {
                alias => 'alpha-alice-1',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIAdP0xCMz+9ICAggA\nMBQGCCqGSIb3DQMHBAh0ChHHICoU0ASCBMgm+FIo6MM2tiZ+YG4+QfbYqZKbQjlp\nCiIO/rEWOc+RuQ4Zzk+9xmx8f+LoQYSn9hzF7a5oVfB6WPlTXaw7wAsEmDmi1AIr\nVP4heq99do6vLSHyJhC+UtnKFyy3P+NTSYeIRBrKYZODJB36mQOgB8Z9+d/2mWmk\nc3W3ULyI3KaYx+0KviETBZtwYfA4I5PBImeJU9L3Yj06pUOY27+BxszC31THgwcf\nLIc9gKIT+1x2GlgkxcpOzVqf4vkfiscwf0T5Q9hApk4yzfOrTxfq/zAVoMVc96Wm\n7tKsp/iOHmsjElGmwgiJ37Lm+m+U8jlivsIfvOqueJ6lgWTCsT/yUuCM6OauaJ2w\nN/kaJf7z438Q+F1ZiPXBdZ8806d72xSKAjR07lmt7yfIFNiaLlW0Wgbj9oVI3/kO\nUXvmmgHZjPFuJBWmRLwd1pji2macQK2k9/y23OFcKhcS4euVLzhFD37BdrwTl4Fz\nRaHFymsILNPaFbFIRrHo0zUp3sSDm9qzTiDM/h4XPUTx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2e1y8xvOI7DHYwYbr4NDXW0gt7ABGVFdbe1kEdTT/OtMR5dqmI/s1h\n8Ck=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-alice-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Alice 2',
            name => 'alpha-alice-2',
            db => {
                authority_key_identifier => '25:95:E3:C5:91:78:17:06:C6:36:B4:62:8E:10:69:E3:56:3D:6C:2C',
                cert_key => '11',
                data => "-----BEGIN CERTIFICATE-----\nMIIDhDCCAmygAwIBAgIBCzANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoY\nDzIxMDAwMTMxMjM1OTU5WjBdMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxHTAbBgNVBAMMFEFMUEhB\nIENsaWVudCBBbGljZSAyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\nsVsAN84HFUBnXbrIn7im07Ry/qgCyfVbzKbTBOwr1XDP63xkEkgBVuuOVtDgBNrd\nkxf9wbYq3CAaYdOO9YwjxfysTOr8YpOQj4xJSTrsoG0d+YGTzcnR/+4tJHqva8hh\nXNIP3ysb68rpADXCJH+dlhbn7NTaG8wN+2uWJnUifeUjO6tCK8ZgqPsRlB2PfTxg\nWGjcdotNO3vQK2esXbuCKGIL3py67AYWFGy7FkTjCQ33d75WvL6aGrq9Lg3MCEIT\n1F9Ihotyen6Ox8D4sWjxynRAZoou5+MjWItefMDENwfqVUKvVAix27vmZfOwcnLf\nwcvmMpADREilFhdigMBgYwIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBRO\nMVcVPei89IY9+yCEt0kDJa+qVTAfBgNVHSMEGDAWgBQllePFkXgXBsY2tGKOEGnj\nVj1sLDANBgkqhkiG9w0BAQsFAAOCAQEAfb/hC3hzH4dAV74BIl3CLh9PuPGjlL3m\ngpkTrn9SogrDMtTaq6ewoFaqioBFVeLwwnflVpYnzG41tjlCXq3JGx8Oiw0pz6Om\nBv3Z6FzeA7/yY05l6XO82xRtl7BF6k0Akh6lkz0+Of2P/cUwmBid2PkWuwx9bIpb\n8pj32E9h2OmrAao+MWwfskHlER3JR144llHxbM0oDPUR9cAn9thq5am9XGqxMHdJ\n8xMcSX3dq6XYADel8zMpYWDoWbwq3pptVqnvy69BUoV7zcp8iYNoEHwrLG4mPUHh\nNntk2IV3UJZdjCm5ZhVnFs5ZLoI/d4+uzb3mEH0ziOsCvNJxTAihsA==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '3Mx4bA9yOps8owt3t5bLSK6rfmE',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'zbwY62EfQRkBZ4bw-gUdZeHsCwE',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Alice 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '4E:31:57:15:3D:E8:BC:F4:86:3D:FB:20:84:B7:49:03:25:AF:AA:55',
            },
            db_alias => {
                alias => 'alpha-alice-2',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI92Z4mO7qmCsCAggA\nMBQGCCqGSIb3DQMHBAi2Hforzj6ykwSCBMjLkgjSC4E1XewpNnD5CpnJHRQ3g6OI\nr6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PUwjHYVq2GQvFr6MmCR8Bp8W5D+ophwTN\nIgGDAuDu8cjNZHiUey+H5cHMaKJx8u9PsZN5vzJZoVYFdLcnpfmx+bJudsiEpMq0\nfPzXwAsUxC1rVYzJWLKzab25j2YAbJFDYKEnFIdCwxsQnQjgolDeOUtT429l0/2i\nxZIMbc8DCnUjdljhrFgOHql6jz1ixjuyulwUXb47Aq4ozwX9PGBulmz/WklxuV+r\nmxcHkO32HMGOUgZv1+awVgKeLtLGkBgPTvZCFsghhCe0YRmuMEAG8phJOZn++R8/\n+2InSH0ti6z9saR0eEETyzghb4u7SfqHJFRWFpQMPEXF2ftvyGGpY/9LUfdeS1S6\n5Ir9JCnMQXZHFZnlQ4bBcEmQAvyfQGkkKnCFAMrDqyDAv1TfsdP0aH0jTaBr8r9J\nS+ge6r9SOSiNb9M6wZxPIny8ez1Zw10UzLfbBNn16bue7mZ2Zqy8rSNhxaCYPwmF\nt/wiQRK4sJfCi/yiu6cEKtyoaTSnpbskbiOsZCMx6AVEjRQdVMOQCfoTxTzOCUFX\nF/w=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-alice-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Alice 3',
            name => 'alpha-alice-3',
            db => {
                authority_key_identifier => '7C:C0:F0:D4:83:F9:BF:97:8A:3C:55:F5:4A:F6:89:0F:00:2B:EC:0F',
                cert_key => '19',
                data => "-----BEGIN CERTIFICATE-----\nMIIDhDCCAmygAwIBAgIBEzANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMzAiGA8yMTAwMDEwMTAwMDAwMFoY\nDzIxMDUwMTMxMjM1OTU5WjBdMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxHTAbBgNVBAMMFEFMUEhB\nIENsaWVudCBBbGljZSAzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\n3kHwnEpnslhH2KoVxuI0/xk1dh09VYO+Rbfkm7yRt2IUjzzP8uzER9MdRyVvU+T6\nHAWJHMRifu7DSncsr1DEJ2C4h/vJV2gs62uT8toDRdPaOxNbsPZw49ll/0dysLzN\nKgO+K4Wzg1FPjZBL5IfEf8wqyfLsvi/DvejSlneqEZenBRjD4OqBxXlfSN5vkBgD\nF9j6kCkVtcjPLGLvK7zjPMo4ddGPOEFttuWGqul9UOr6VnuWMemJOeU7/XFb1Oii\n/f9sQiINNojvI+gk2Y6S+AkVSxyG3j847MttKIteH+WaY3WqSVBIRoEMQIvi/Nz6\nllzUffvEib/76F731GMGbQIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBRE\nXGfsi2c61VEs8H9GqdD6jz7aezAfBgNVHSMEGDAWgBR8wPDUg/m/l4o8VfVK9okP\nACvsDzANBgkqhkiG9w0BAQsFAAOCAQEAYduPnhszH4rHWicqb63SekmOb/WircGf\nO7IYLhbrDAoWy5zWVv6/1QLZj/YIydWxk4L71yR95bGboJIyeu+nG6IPOi4zK6is\nxp5Oa3vt9ArdApfLhxODw1Zy/s7j7XeYlcQDaX6enzkmADUypx5BykF6tCKGFA0P\nKg6K3XtvVplRCUMwGQG/PjMdQ0rrcD2de6vkoqZ1cG4pXh//VtL2D5WFUDl//31b\nlgaF1a6hQfuo9sYVlW163wyfmbcIFp/pmwUto2dQYn2y/DtkFZkLiA4DJxcCS9k2\n8rO4pIWPuJ1LdHZZj/RUg5NxGwQzaV2ZmST987ebxZm4KLs2w7bVCw==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'qBHtYgX4yx9Bl2GI4EHMaFYF6MY',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'q-yWkovtKUUH60U0_O-mjr54cBs',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Alice 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '44:5C:67:EC:8B:67:3A:D5:51:2C:F0:7F:46:A9:D0:FA:8F:3E:DA:7B',
            },
            db_alias => {
                alias => 'alpha-alice-3',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQItdLS7j/3E8sCAggA\nMBQGCCqGSIb3DQMHBAgYo6rjukx7OASCBMi2mhvq7zh4qm+wdxJyH9cE1p+ppbDp\nE+OTagU6PB5Cyacp+mmd/0QUZYYUOriQXEonfpyHuKb3vBc/IwIh62mIZsBOsw8m\ndc9iBt0/cFfYWvtwryc5yV1dtsiOsspsO+7mBqvf2zaR/jULtb1fwibAkE+NYoHw\ndfgZxgFp1CutTes8UdrsJ+uSkd19Scq10MNCeMU+x0zPeFin1/m/Fh3BaKoLxDgy\nATDjYFGsjzesj9eTYCCCMnDfKmOPQmm+X8MVoDSL0HH96ry05ihKUKKOk5uIA/82\nmpT8+Od4bVRJ7aHaDpVi6HNzaSo/5vmKHBvjZRFdEfQ6paYF/Sl5kBOOU12wni4J\n3inUAUPR0UL6+g2BG/aH9AMx7GJkomJ55abbmU0hMvVjuvH11E9Y2wg6CV3sZRbg\nXI0pySJfolLNiOgZFEViXb8UgFVXwE9EC3UvqYxnP62ouycJ29G27GV2lxvJzzcL\nFsw7UOeb6OZyqj+TqzKBN8+Req9aT+Qnpy1ory1sQJJuHucAhDEV4L1XSDxbwfW9\nCPEUg2zGlBKl7vzTGEsRtz+piFaG6IboDbu20M7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----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-bob-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Bob 1',
            name => 'alpha-bob-1',
            db => {
                authority_key_identifier => '93:D3:15:2C:E6:94:C1:D1:39:A9:28:DC:2D:0B:F6:6D:E7:2F:DF:CB',
                cert_key => '6',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBBjANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMTAiGA8yMDA2MDEwMTAwMDAwMFoY\nDzIwMDcwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhB\nIENsaWVudCBCb2IgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANf7\nIyoJArg1kjtveMuaY8p+6R9FTz7ZWDVglQvcCCKAY8k6bi96Dt+OdxmmmJIKcP6L\n0av0U8QuuuBqcfAPHFsP9xdBFaNtEpYqxAfMVCZmvjpSjsneoLhxQaRIXWv5/Zna\n+5KpBdoOqFBeV1zzn+uT+g3osOkGFEvvaK/djeo99NMG2c9D0rVnPLT+IuvJXmTS\neFFHMYqQ4V0qYtoLKWBy3UmeG5ASi0DViy7c6QaoVbNs+E1yhQ8JqD1E1srh0Q7y\nzkAvz5ntACPL5/P0EUQp+GRgjhwYYx52UL2v5/X+FHPJJ4wtGuCEojOE7zGoFRXd\n41k0VBSjLCfvNx51lNUCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUWiMG\nsi8AmtVISH0VaIENSEIQydIwHwYDVR0jBBgwFoAUk9MVLOaUwdE5qSjcLQv2becv\n38swDQYJKoZIhvcNAQELBQADggEBAAtv5IAgn5HNa3TSw33QvfsaOAywnJsbCKcw\naJeSl/M/0nLrCoaNklbcQq/iMGfo6Ml5nukYqIw4oZmLOS8/TmEhz/jGLUlewbOw\nbbMpOsuKbKHzWf730gyiQbmKTAk4XqsWS+vfZh56Rf4nRJsN33muMSWlmhB8XCrW\niNdW6/dANwXD1VmJN4cOKf99EX3PkYBa5eC6TqkfxmySD3BsOD6K8fIbMcolF4oU\nydI95SprTEpL3rBjsX2i+i+Rw5Lo8zKHuU1Weg2bPErCSnHA5eDJ+/FKxinOT7/9\nUPC0qeP4ISuQfWAwa7CMPi9gJLse2YBq66x+4u9QtJfEJG8oh3g=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '3T7HFMNGMw1qbnlWHMVM6zGQZ8c',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'UDFhlBTPFnXDz_tiXZ_FZ7MuKng',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Bob 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '5A:23:06:B2:2F:00:9A:D5:48:48:7D:15:68:81:0D:48:42:10:C9:D2',
            },
            db_alias => {
                alias => 'alpha-bob-1',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIGRyXV3oSNNUCAggA\nMBQGCCqGSIb3DQMHBAjiSW6uGxAWKASCBMjXIHqX4VeDUg443R8L/692GOAo2/rb\nsJpo6t7UZe1iigvKGCb21zfxsIlAozveZn1Vhvt1A9EZmudLiU18areOB1O6bqA4\nx6DJ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/jGfmFs3MGu7z7vYPwfzSjjLAepMankP1tJhAysOiPJZyyt\nxP4AHTkqPCITKpVH1LHec0FWpemZKPCIJ/qEEByfJp9eO+CnqIxByYIApOOZ31pH\nPnbBtNnSzcLXaHrzscbbNMkEI8kp0kd+tA/TXBsBF5DqczpxcPvQYMJFGqLU1XsI\nKA/8K+k8NTiJX0EgLCT4xesnwKixTjqjcZdQifyhWiG5Jl5xIaphpRrbobEfUnjP\niF4zV82cgpM3QfK/yf+DGwQ70VBG+8jGLQv/UajjUmtsApOakCToq9iwFPqKwpoF\nMR/+sNj+5tkW9n4ddVkTwc6UjxQy3lhNRK9zc89riv68QXYT0xCOXO5wx6biS/G5\naNfvRkMARDZS27USZxVa9CPydyQIVSKoObV5TPY4HAwv02FTrnx9ZeLksb/2+/N2\nzn+aovORcCR4PdpZuvz2SAOiF72hAuRnspmwMZpY7FxMk7frW94Z5WYjifLnCQwD\nSQ8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-bob-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Bob 2',
            name => 'alpha-bob-2',
            db => {
                authority_key_identifier => '25:95:E3:C5:91:78:17:06:C6:36:B4:62:8E:10:69:E3:56:3D:6C:2C',
                cert_key => '12',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBDDANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoY\nDzIxMDAwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhB\nIENsaWVudCBCb2IgMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANlc\nYeCGZLPSbqdxKWUFgPVGUgjAbSjABXpSbnHIAyINrG9ZktuffzuE9voPO+dCHCof\nXOjo2q3rQkal/2jePMtctP1jldgsaE+K7Hn2B1A++/+zxGUZ4PxNWXZTx8kMgJaX\nSN3qUtLg6tk2jxywMsfTXOGf1wtkdw6edMTKNyG8od9brgrBqjfsC4pYyQGbqWR/\nWK9lwUH45DC8LHgjeKY6JyFUkJGgZO06W/r7yNE8DL37E620qTO9wV9N8o0X0j7g\n8hSaPuYS+rt9U+/lOfvh1c+Gnu5uacNc25FIe85zAPDL2WmTwqJ6+Zl9gh3VRopP\nvjM2AB3nV34RuAq3Og0CAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUd79n\nV7NgoQRnLih0VHi7lveXI9owHwYDVR0jBBgwFoAUJZXjxZF4FwbGNrRijhBp41Y9\nbCwwDQYJKoZIhvcNAQELBQADggEBAGfFmLflLdJvq3mpc9fGU64/FYQAH+DgQ+0k\nvXxyTNrpJ26DCR98x6yFHNrJPVk6Ygi/30USgDJZ5h7X4u44R4mRMbmhS+XHFhRH\nlt7t8JxY5bjmyuvci6nC6R/FTQY9D53VMX6tGk61VckmFpq7QxInrls62lBjJdul\nSZL420Bglbn6+f8AlQslEEG3enmY6mns5OdpETeMgL3clM1j9UwL6DCoeyIK2W8r\nn8XL1PWgLCQ/fqpqRTHnfGEpPnR2+eXoRtl7NQKPComdaIIwgjAROQHBpyLT202n\nT6CrB/cmkRHeocx7zLBxXaBq/5q7iTu6D83ghTULkymjeeRk1UM=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'SpHb2LrYyDN7F1YolXPH8_vgKyA',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'zbwY62EfQRkBZ4bw-gUdZeHsCwE',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Bob 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '77:BF:67:57:B3:60:A1:04:67:2E:28:74:54:78:BB:96:F7:97:23:DA',
            },
            db_alias => {
                alias => 'alpha-bob-2',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIDWnCeZbOf20CAggA\nMBQGCCqGSIb3DQMHBAghzR1MyMN2wASCBMjE2/HcFxpUP706xUNsPoUS/tT+CiBt\nI/Z5Eb1KyUczRo37D2E0kMduV5BT8EKtSAPM0DW/LJXbeq3txhhFU0kcSCopuVts\nAco2wEvm6dKZKM8O3Hk/fr61s68Yj7GDSFL4T0+gUtTR7m5/lICu5WGHgOxEaYVO\nwt1DbVFI3fCIHQeU4lfo31PKFXPeJ7M/Yx5e3cu2T3kV6/6NLQD02vhfYw96PC9s\nVZx/kon4DByNqu6qbinmd4A+EXegznqe6F7RfbBlLQ/rqal8z8ZNMbSngs3F8l4q\ndhz0d9us8v3y+/qHuljTbfnW7Q+0NYTq+lvpMn1lK4PnPGSsXjVdpUHUr8fFPzW+\nXxlqHhV67xoiEwQXVZCeohxUUDmBr/S8uBhhYNyf/vD2a2nsK/RgV/x4IptqIukz\nQOv/z1QLXbBo7jyDrhAVFzArf0NONIVMq4NUDfGhuDnZsT1nCVgmWTK5FryDt0Gi\nqDdtXtuT8VMV6G1hhSCGUKxiqxIBowIrU+vX5nh81WvdvCksefRs0g+qfhsUElSg\nIX81LVwrVeSnUczFnaxiwKlbK+mREe6l0+gRlElA7zytC5isZWh8pYXu0a7SL+Em\nV2Yu1hNGsREBo0o56YQlWVd+/r1O1YpIKYq4uQs3vwIu6zwXpwY0QP468MUUHX28\nmznta8uVH3ViuvwNt4V4p5C+IfFZzgpSpvCEiZwWnfiL2uy7s7bpitjcA43m1USK\nSHngtPhG9ROiDjWaTZAFgbnOf5acL1VyljgD21WU8kl9l7sKZel48txiAfLK1dF2\nZARtpW5U9BpJALcRWiT79RGjcFcvMtDVYWghxjJc60n7Yo8ZgSz7Byj9ojylVD0B\nrT98Beuj5bVjTkr76JkIlbMHTcK8v+cfGCclIYQNophdWeUbLWePX4wp4gZUv5sb\nJiBEw4gweC/O5stXiP3XryrOCI40YkdpN4pdmcnyBCu2UKGjwOV/gXa05GjlayH7\nT5Oiy+1G35UZEEa+9KVvjwaOYsr2AmJD5j6vLbxpl8AtHqRq4eY37dFfN5Ks0qAe\nHNptnC+8MfwaMd0dJTlwC5M2LFRgR2v4E1I9wD1xONUvJfHsVP6qp4+IDIvGr/2Q\n0J0PYO7CJHIKi/7RuerE76OKaJ7Dc4jY8KEf7kHNKlDCO7RHM4YyMb7LEyRz2VzI\nyoJoVIff0S0Vr92Ui3TokraC+1ZeM08Dl5nTn4/k9zqDxz14iBCGuUzO1K8XG6xj\nxRZPePnjZr1g/kSiQVfk2T9G4xr2PMtgy8WAW9MfSIObr5IjFYDYp5B2Tsna0tZK\neZYBZS4Xer0Ou2ygyRBfDud5iIXowK0EuKSGUmNtR8gdFSQG5LMnc5/igKKcXz7q\nW4LX4AdQ0S2goRIKGV/7+hX/YOashZ0OC+OGGqzSsk8zuWWAwuACfI8tvFQpZ5N8\n2kJStaFmwI/f3GNJKOeBo7vluKqdRKh5UTutejmPSMmtOKZWpSWtYMItsb3MptGY\n9qeSUsWsQedbLn269MTW6CPXEa871dXtMHGwvHcrTZLKetEjg7/jftQrMgnbFAMk\nTpd70cV3EW5hiUbLAOmQjX63KCvbZpjcpHA8FphBWfJt9vTA9MDxElhE9IVSjtkM\npWo=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-bob-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Bob 3',
            name => 'alpha-bob-3',
            db => {
                authority_key_identifier => '7C:C0:F0:D4:83:F9:BF:97:8A:3C:55:F5:4A:F6:89:0F:00:2B:EC:0F',
                cert_key => '20',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBFDANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMzAiGA8yMTAwMDEwMTAwMDAwMFoY\nDzIxMDUwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhB\nIENsaWVudCBCb2IgMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANKQ\nsVovuBKlRlT9Qzg6rCaMCm45D/4NwtZP2VqnWZ9Y5m+/ho/iq3U/TWV0JsqcWPFL\nz3bzQf7e18lXqu51RsnE/xEj8t2x9hz8X7MAAY2LOTz7zKyG/nFM9yPDZe96aT2o\nulx+VKueZrWxjvaoxY9SM0BN7fgSf7oTxsdpauylswVrmttPleblssob1e5KVyMk\n5LgO+6pLs1rWdCpsFeWMyAYawAtcSlTtLvb6CEytLAvpP+54495b2CGX2ZQIAMb6\nV3NxOrRdnfs6fSsR7nc3fX9zMCTL++yVqDWwWWA4Cm0dwnV5R/8h1DMBbIftSGaV\naxq46iKTj0H/Z2OmI6MCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUMYp4\n1835xD17eCRq2HL3nub22sAwHwYDVR0jBBgwFoAUfMDw1IP5v5eKPFX1SvaJDwAr\n7A8wDQYJKoZIhvcNAQELBQADggEBAETKdV8XwL3fN/X7tUnSBT4EqqkzZZUivjxb\nkn9lsffubbYZfdvuQzAdOSmtxNXN3HGP0CeYdE66l92ZWdCJjvEVJnMAzb348+0T\nb5ESzjbh5bADZmf9NJmtbZ3OMt1iENplMVnkUvnyqNiAX9DNPjCeXOR0xFXCXCA5\nbJ0C4DdKFO99Mg6MrZg+Mz4cbPArT+AVBlL4y2vFrgyUdaHmlK76u3okz10dKpeV\nyh7nyAM7teQyGoVXhL5p73F1IYGkBlK76WeVFUTpXUbjjGBgrpsQwbKEmlKsOLgn\n2++S+ds/tbA5ajTf7HOqQmwgAeFAACrjyj4ZJO3U0RwUP146aIA=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'dqCcAJelpwr8e-sxN3ODBy8id_k',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'q-yWkovtKUUH60U0_O-mjr54cBs',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Bob 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '31:8A:78:D7:CD:F9:C4:3D:7B:78:24:6A:D8:72:F7:9E:E6:F6:DA:C0',
            },
            db_alias => {
                alias => 'alpha-bob-3',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQItmCNpYnYAuoCAggA\nMBQGCCqGSIb3DQMHBAhYdr+g2+rQIQSCBMgQqb2tEe5yLbRsMPTnhuHFsVYxW2/O\n1sa7gOWG3YGo/Dgl2LFK3JrP3wxQ0YXR6k/JopYoT8X/23h71Tuvb6NdcsJFvLIa\nG6sk6EsFJG4wZZE3lwor1Ql67evIq0vV6mDLj+FGYJURSYVyLAZIs+f/kcglzdi+\ndPN2xqVa+eSVOK2K2E6h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el7rfN4PNeujRhc8Dl23ORD44\nwNBpNOV9OQrSQh0VlVtzOytSqAdYMcLunJklDQ8fxyK5Yl9E46g+AAoBtO86D1nJ\nF5IgvgCNpEVlaSF56CO9fyiH4krAqz81mR6vhdVJsLO2Iby9WvjRV1inkGwXzfdV\nrvSD/I9yJ7skZtWsKGrRd+9R7xAuIO/p2kzEcozRVEJ++5f+ecAL6vqIrIcjmM6H\ndUNul7tZ5Hj752ZDWdO6ZvM8BLTPXc48zTypb5/BB+KOGEjnT51iyIPd+nYtfQKU\nGVTHyqHaRr63sCSWVphsBEQoK3gtGpZfmYOF6wU4gdnHZ41bKITmzSHo0ZAoY1HW\n800BHzdTwGQsGh7sbdeF2BdJjqFRthxItPmOD6oY6DgCWLhPvAuisZveCLKnNXgO\n29M=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-christine-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Christine 2',
            name => 'alpha-christine-2',
            db => {
                authority_key_identifier => '25:95:E3:C5:91:78:17:06:C6:36:B4:62:8E:10:69:E3:56:3D:6C:2C',
                cert_key => '13',
                data => "-----BEGIN CERTIFICATE-----\nMIIDiDCCAnCgAwIBAgIBDTANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoY\nDzIxMDAwMTMxMjM1OTU5WjBhMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxITAfBgNVBAMMGEFMUEhB\nIENsaWVudCBDaHJpc3RpbmUgMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\nggEBAOPx2f7EGM7IS1A7jJC9lR/oSr/zdrrgZjtDYDnTEX/EP5QF28vaURAv+8Nd\ng0RWP6Tlq0b5n+GviOFlRZSp3o+QVvkitt0c4qry0BYrwGMb9tuliMWmi3MQPQZ0\ni2XTvUbyuB3GnJca1JNFbmgOhiIYsDSL8leyOuPhQX0ZWZr1msm0xPL7Dku5M0Uz\nNVkmkRZbpP/SN2Rrpoxp2BNPGWh+ot5RC7pElELwtJSJRBrX+TrNvuMoB948iJ9+\nzq3yv3PUQtnNDuXfqXpgdhTpszHIBV2JtFW2K4ds+q40gfqwX2pP0JdeJmyFs+tQ\nvLvOM6yFWwcSAat6jPjRRwV4Rl8CAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4E\nFgQU/B+msQ51pSvmmGw/9bG451/YWyEwHwYDVR0jBBgwFoAUJZXjxZF4FwbGNrRi\njhBp41Y9bCwwDQYJKoZIhvcNAQELBQADggEBAHl2V4gMg9eTwjBNV6ID/AVXIvOr\njHDNaeCRWzAwPlBwOmQrMZOr+JAo0+h9uv6Wyz2qA8p39pzBDQtwFKpewY73XGaA\nf2ZAErx/zj+DEE22Zk6s6o1EKZOWS8tYKPmon3CeT5fLmUwzVLA8AjqlKdlnJMLs\nKdMr2DRAyqieQJWWB7kyjo1rE82GqlN1ICrgsws6Ryr4sddeHjOp8I5EeTenVroT\nq1X62GecI1M2+ssqUEwsBWEsq7g0S3s2rqBakueaoVVLHzDhn1UzXkISSTC7zpWz\nN8VjsHqF1p+e6v3SkUVzQDcXgUNR8FFpb9dYCkVbFuKdeAX22D2G+9dFlK8=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'YJyCewVRD_1LGdMD0_RIY-S_rvc',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'zbwY62EfQRkBZ4bw-gUdZeHsCwE',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Christine 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'FC:1F:A6:B1:0E:75:A5:2B:E6:98:6C:3F:F5:B1:B8:E7:5F:D8:5B:21',
            },
            db_alias => {
                alias => 'alpha-christine-2',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIoimgQF8U+BQCAggA\nMBQGCCqGSIb3DQMHBAhFypRjunZ8dgSCBMg/b4uiKNQv+cfxJdV7mP6vfXJxwOhh\nmgqLaysgbp6yUK+sb34vYpU95cb19aoHK/PJ+UWHLGF4vNQeBZv4llVTLn75pZF4\nztsDycz4gBXhSwOTi4KrTptuEy2YYsj6Adn62DYjJLT+PPE2QdASQK0zOvF8vozN\nVyuFUYHjlveKHlwfndyYrEm5nDxfiDcLWd42mjKE7Z5piBKwoXnBqFkSAAnGaC1c\nCcqYRZHfA6c50UEpPq11Df2dgP4TiakbONORKH3N9swRllGbaCKjjlAtIdToPu82\nqBCMs4KCv8DZCn/czMWw6gchgXcrg6NSTSkpeAtO5EJsLmz/V+5gOQQ57srDfTmn\nOqz2jaD7dV9d8WdCmUSbfgrGy8KhTNzMNkcVFFkoGV9nrm6mWBTp0zt8Sq/MLJ5G\nmuF7lWEb3+65FYRKdcbffBvf+0uxKrr+nIJ4Xy+yWlPZ3MGkRVllm3Ry3cXRi8m+\nF90DfL0AnilCykoOU3PngmEUqqPMwUlze2X1a8JQIAIZgvGiJ+7/VQ42jScSn+TD\n7yIk+tTDxobUwsLVoR/6haaum1h3mJrSmL3LsMAUXELPBNVPdvQMcLEF04Ful39F\nNofz9TtmDpbUidNiNK8QsVyYnwXN4GCthdSjvNz7nz3BM6CM/YcVKIfCfFnvxyI6\nfIt/LJzdEh0atuRvQFtDli2B8im1WDHute6d4OGAhlukTf6YKQFBKRHkIeA/rdef\n9nRmmAR/Zo/c1XVvplGi/pDd6juUTJl8b927g4wyhPawSxQYJobQXZ4G3J0k5Mnf\nI+VFmtmOKV6rQHsYgsXRrSG2oMAsm7TD72RrMwcrZknQYjfTAGa6AcIdaah5vX7F\n+mCKyE23kz3cJgrBC8A5RqwaMNuQ/eXcezWufP4ANvBJljWWg+sgjV/t9WTeFw5E\nykBnY89ye+2YG5o+BuIukDvh9yGMPoHfMlRC1Hl+KDTDqS6rM1a1cRgAQGaaBooY\n1ClyxFWHSluS0LGcc6yRHvbGU41bCuRCGU5DcndX4MBQLHvv3pedGEvpbbs6cIkT\nr75MJDZci3604yba03PSaHdBdDdq7woBK5AAyKbSpx8m90lDA0zktb7FgLLDK6IJ\nbpPjLXF2B59uAMQHcaeZaf7pz/zNdkTCD9WnQ7mkP2DpOqHo+CnrYJJbOGcNlPtI\nbqhMaHpD+g2L/2NjeSIvt1SL2mDyS3sbNTvWFbGu0sawuRpNbNjvDh1RV+zEmdtJ\nIb0O/iwmsoGPEx9X5l+Xtqll/M96UQxk4fTIJh00p8rBVGVGmkZz/cYFtDfb8+2c\nfFAp+/VFUboWZemiEU/fJtKeZY5fIXhgUQppjr/nGH92XiTbka5Ns5G8ASX0DS0C\n8GX2Zsu87iXHlVx/L29yk3E9x6qHk1CKjVwg0EFvFsA1IEYyui5tnJgRG+CuHWE+\nbP+6CswjfYypDgS8mgQ0muFrTkrhARxXMWsl1WhdUCsw7VqL0uha3jPYXqP8bFK7\n5ht7K8Ri0aED45qq7a8i4a0pc7KnylNRAtXuazAIdvgx7t/ZooOhTwncfL3wlNbe\nzrpiV/1stU5LrARPAXSxyVJylMioAqLUVF08pxJvpt/ZtwD0QLotDGxKlyLxrYID\n1Fw=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-datavault-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA DataVault 1',
            name => 'alpha-datavault-1',
            db => {
                authority_key_identifier => '9B:23:15:05:EE:8F:19:EB:54:4E:85:22:5B:73:4D:D6:B5:9B:D8:84',
                cert_key => '1',
                data => "-----BEGIN CERTIFICATE-----\nMIIDojCCAoqgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGjAYBgNVBAMMEUFMUEhBIERhdGFWYXVsdCAxMCIYDzIwMDYwMTAxMDAwMDAwWhgP\nMjAwNzAxMzEyMzU5NTlaMFoxEzARBgoJkiaJk/IsZAEZFgNPUkcxGDAWBgoJkiaJ\nk/IsZAEZFghPcGVuWFBLSTENMAsGA1UECwwEQUNNRTEaMBgGA1UEAwwRQUxQSEEg\nRGF0YVZhdWx0IDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDNJiUN\nN9On6sksf/o6rfIEVgZVGgup+NouNVkMkmjUDNiujRLC4+T4/qT3BdPozlLeLidl\nhhpi0ThywoUbL2kbDtQeTMcuZTu2/B90Sz3Yy/crhvuHZFyi+QHDhNAK3mR0mhG/\nSP9jvShSa3u5W6OmIGI86YF1LHOKDgnZr8X0XER1kWxPKqyg/GvU++F3ndGDC5sG\nAtvyHwzk3zvHTqjPKcgSNunO73rdCbqq60AKjio5e2VaTUssjldyQfmaiR0pl/cL\ncnUk+9uW843bunpfjyl8QCNPonF8wMPzNqKWBbzUlpbqdIcbsmmfFg/NweagtoJA\nt2FUb5PvptJfTKZnAgMBAAGjbzBtMAkGA1UdEwQCMAAwHQYDVR0OBBYEFJsjFQXu\njxnrVE6FIltzTda1m9iEMB8GA1UdIwQYMBaAFJsjFQXujxnrVE6FIltzTda1m9iE\nMAsGA1UdDwQEAwIFIDATBgNVHSUEDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQsF\nAAOCAQEAbfb9YdmxcgHimUg+bzCXUUNE6dA6VrBwzD8eLJDMN5yNzb/X2aS0suGA\n2LXsnZfbN1LrIeA9dHr906bC9cZSIYa6M/n7dAVGBkHl7yKyAUrdrDxpawNreRBO\nPzU9wvGDEivusQEfeYBq0vtC3eUYD3eZFuIXXzQwRwIC91WZzAojmKfUspobVcvN\nZDhD4NzZem4gNEcrVbHOQIMFPRXWZGQOrDNEwKz8lHZ6soDQAaoocNr5VwIZ5rRG\nZtI9fqYBGYdDwIDKuutK8lJNa5GoV1JDZLkvPmDGs09D+SKUegSomx+9TIPb1b+D\nMs36XvJatMeliM9pld52sCYA5Om54g==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'BHX-aODPyQZVGSHK9UUo7tkIIDs',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA DataVault 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'BHX-aODPyQZVGSHK9UUo7tkIIDs',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA DataVault 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '9B:23:15:05:EE:8F:19:EB:54:4E:85:22:5B:73:4D:D6:B5:9B:D8:84',
            },
            db_alias => {
                alias => 'alpha-datavault-1',
                generation => '1',
                group_id => 'alpha-datavault',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFBjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQILI/3wcrM9vECAggA\nMBQGCCqGSIb3DQMHBAjnLTYRUQ/9IgSCBMCYVxZjEKAsrDJ8DN2yzPuTZ0L+KKVK\nOZHNKDWTZ/G8isDPre5sp5KSlyPrqZne5zEcM5F4IwYAVagBcVrw6i3pmR3yMA9/\nGwiCM2AxJat4qO55JqlG9M+cVO5iypu4EoM0czT4V9UAtiHaOulPLiIYYfGdAFvk\nsH6oFyQ0s9y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/SyGBzkfXZFvyyEuK97JdtF19CsarqDzRJVM2\nVRo2CdjxMEDM1cZ6brFM5tM08moVubD7M/Fey1n6NQ/XGz/Tz8lwhM41NvtaopQD\nGUzlk8n/HGxc/8GnXuQAS/mffTlXyj+0ymWYZgyq8Lr7OTn2FfjXNOJS8h6eIg8s\nyZIrsTGzedGL5qcKF3Hep1Mxa4i/l0/l3FqRBeHQn0gBQw7aBtQ4FkY/DsEoE0GP\ndVpYv3rs8CWQCp+x2yd0p0WpS3/dR7u1sE9XFxVuSg9sLMoR+1KVESnJ2+w/K86E\nXOh8sWUMdxeOOwSX3exLz5/FgKDaKABK7McW9DQYYq54KE7S269SkY4zN7AM+Irt\nj9edv+O46eQVbPvgQ1Qak/8DUQw+8aML14ue3nn38wUTa6DUCxBhH6iv\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-datavault-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA DataVault 2',
            name => 'alpha-datavault-2',
            db => {
                authority_key_identifier => '11:31:75:10:77:E5:13:0D:F9:ED:97:BA:87:F4:6C:42:C8:34:94:D1',
                cert_key => '7',
                data => "-----BEGIN CERTIFICATE-----\nMIIDojCCAoqgAwIBAgIBBzANBgkqhkiG9w0BAQsFADBaMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGjAYBgNVBAMMEUFMUEhBIERhdGFWYXVsdCAyMCIYDzIwMDcwMTAxMDAwMDAwWhgP\nMjEwMDAxMzEyMzU5NTlaMFoxEzARBgoJkiaJk/IsZAEZFgNPUkcxGDAWBgoJkiaJ\nk/IsZAEZFghPcGVuWFBLSTENMAsGA1UECwwEQUNNRTEaMBgGA1UEAwwRQUxQSEEg\nRGF0YVZhdWx0IDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCw3FPC\nKbInXrMvFKDBGCeZp6wTMBNpEQxIEWRSSds7mSjgRkNduMmjIJb8PypsVp/74lQS\nAJk7BwDTDvG0BKEHk6C50igEP6RZdbpVgOMhYYi2pXabKiiifYfXn/GSEDWNTrfC\nz+j7th4y9hNfM586cpPdJZa1iNZiyRvnJk/mOY32uk4B4STQoLV6hiRp/wl5K4JM\nrypM42fF5//O1u1nb46tClw89k5RGdMAQigY6P1iaXIq2NguqPeuvFNGA8WnbfMn\n3UEnuZVcpCiedgMV0+p71QAIC+QuBc2BlxFRHE9w6JTfqttCvpud9hxQaEsiCvmN\nwTHsJZrggKQC6567AgMBAAGjbzBtMAkGA1UdEwQCMAAwHQYDVR0OBBYEFBExdRB3\n5RMN+e2Xuof0bELINJTRMB8GA1UdIwQYMBaAFBExdRB35RMN+e2Xuof0bELINJTR\nMAsGA1UdDwQEAwIFIDATBgNVHSUEDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQsF\nAAOCAQEAZ8AeNZdMmhNjXDLTbZQVbDjWndB7Bd2xTzcU8xGEfVL8sON5j8FlY9Ae\nU0j03BFNu9t3ZYXyAgPPh30qcZEcukkjFrbR9WRlp+lM4AZNzim7ae/0F6WhEXv/\nnzBbUizOfXGKLT4WdPN70zx7MuOCuSO6avkxRnizBBfNxsP5MfGS+pOTp6kXdtss\n/SIg55tOm9njMCNa9js5U07tl4bU3z5uHtIZrZiCoH7r5HsYQ/gfdoZCIFJkrv84\npif3zHA/hdES0A9Ptp4YfqWENtWkAiPwj56zpvqw/KsphjDkD7v3XaknIwqYanVZ\n0viQTipZeHAs27b1nyI/ntZ8HtUWiA==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '8W2g-IdAeC1TUzgDi3_pz8x96RY',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA DataVault 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => '8W2g-IdAeC1TUzgDi3_pz8x96RY',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA DataVault 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '11:31:75:10:77:E5:13:0D:F9:ED:97:BA:87:F4:6C:42:C8:34:94:D1',
            },
            db_alias => {
                alias => 'alpha-datavault-2',
                generation => '2',
                group_id => 'alpha-datavault',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIFmeob7h5CTACAggA\nMBQGCCqGSIb3DQMHBAiL/WkMZKlOiQSCBMhYBKZQ1un8C1GL/iDP+VAYwLQ86her\nBlrdyDutfo/Mto7pXaabPKHAmAmQH89amC61nyOjlcSEwwdzePQCngw7RUA9ci/z\nCna8enNoQ9p+yXpGxllNedmfm27jCK9b7T9Q8jD55CHr+Eq5vcTnBaEDu6eE6bQC\nN0c3AzpQpXI7XHvhHjFKcCbENe6rYrA4rzpUaeEL8T/jZljDd7p2Y6qDLU3SAcDW\nv4a+tk52MQA6CgihGXKPBVG2c5iPQkXHWq3XMaepkRrfM9p1ii4LFyAUntKhimd+\nstN7ED9IuqO8Wk7mIBHYopxLgwFHktV7G7g7cnz7iQqXigm+Fry3Zd/PFy6e69/0\n6KcRxDf9QOR9ZJ3kTt5HBYM3ahOKwa+MNmqPKUvin9s9M4rBX9EE0+PCPqnSWIAG\neDj3NwauGGSW9OALxP18ETkvaKclvI/YnoH4hq6WnvQNMXdHKp3kR41jBnEAWKOH\nINcKe/glNYzbqP50dnylliMELL2TMozh/vtz8deNeV2Lp2e6CXKn0oWa1SwtG6yU\nicmn2IrUDqQEaiueh1D44PTqroTVWiPte59qx3giPkRAYC8w8NFUta5p1vgIpY5W\nVHoeGRgMHlQpAj+m66LFbjRjQMAeOqWIQNpZoFdmfHo8/8vMPS/nMdLzHw54wqQH\ngMD2RqaV4uvVIetG3oXlcSySAdLbPnnHGr7WdkZxf52XN9fM9BLC4LP+9Ym3zcvM\nt1uaUebJgHgn7KYDViiYjl/8RmfuCU6ZxO86RwL2wW3c2DbuQuUtUR3Ht5dxwARv\nTjFMO7qhpuXllsXWgg/yKU5UUuLG0CRQAxBQDAXWRgGBo0bvwxiaJ0gPdkmeHXZa\nDSXCg4xaBmFP5vs4Yx+u39xu6o8VxN0sHbbIZuZKwh/XeSLmBZRvjSez8Mrhi0iS\nAzh8czxyrao9wDh5SMTPySvz9CVOcJAfJKI4RuyjPOUc+lkUNQIGym8LlV8Yc03W\nUdnjBqElf59bI1iKiR8mieKRrB29BVzQyMfzufLBPsxTD01WgRemFF60QtLWNhp6\nyls4RGqRTc5HGv8rbGFWKZZWFOgmFTZWijOnPvQkKvwWeiFLyw6mD5ab2FyI8B2M\n1KgCzPO46PRhFePbMmiByMljuudzuZJ8OSqgFhFox/0dviWDIJarhl9nzL/ty/Pg\nm2Ab1//37Y7PzjRGjkTMX0ajeQ7wF9VFwUTydfy+7u3Zt3lXszQjihmE/GIvBU0E\nKh8pvRg9zLTuTGcfKPdtHtbz6kySFHOHHO/sRJVPuoRtoTw0/wwhBSwcwLhGmvxS\nf8ajiKT7yvUu8tpYRovxHQcaWmJlfBHkge3c01HiUv91jqSP3vTFmUlbLaRWNGw9\nV/GxfP+TURMg7pauDfdvNvA2GjeCan7vpYrNAHIKjO3Kprf+ozfN3+jAwcHqNww5\nH4r/uqsV7ykz/etBjOthsGICdced8BUzAXLt9uqkpPszRSkuCRwaS6iqc1EHZ7gu\nM03Gkqr3sbcYK2tqq6koo6uBt839CpcWgKy4ZwXOwUdqI82Jj/YjaXl8fJHJRedX\nlWFWCuD2/ge7Wm39esQjNx2P4UcmcTUYrVO1bum9lQCDYyDCrjdncM3ccL2KkAiH\nB9E=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-datavault-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA DataVault 3',
            name => 'alpha-datavault-3',
            db => {
                authority_key_identifier => '14:D3:A1:FF:DD:55:5D:E2:CD:29:5F:64:C5:79:CD:4D:13:62:1E:10',
                cert_key => '15',
                data => "-----BEGIN CERTIFICATE-----\nMIIDojCCAoqgAwIBAgIBDzANBgkqhkiG9w0BAQsFADBaMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGjAYBgNVBAMMEUFMUEhBIERhdGFWYXVsdCAzMCIYDzIxMDAwMTAxMDAwMDAwWhgP\nMjEwNTAxMzEyMzU5NTlaMFoxEzARBgoJkiaJk/IsZAEZFgNPUkcxGDAWBgoJkiaJ\nk/IsZAEZFghPcGVuWFBLSTENMAsGA1UECwwEQUNNRTEaMBgGA1UEAwwRQUxQSEEg\nRGF0YVZhdWx0IDMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDTGkgW\n924D3NJYppl5Zfgk5WmjeOBKaNs3kmhnNnHVq40+BmsvHCaTHlnATLwmqORZcdPm\nU3Saw+dvVhs3DIjwtwZW4IoyYw/3Xuu5QAb1wl68kT3xifMS1tRySteIBHgmX8lO\n3wUdV7RXn0jP6E0QLecb3lrckyw7jAsSCoC0/1ESuy7bAZ34QAwkHDnkldXV9070\nSGm+O9T+vxSBrTQmkk8x2jimfB3zYlr08YvEBkYgPDFnrTYmfnHvcjN1z1kjOL9v\nJUZUjHWKWgGPQOBLZwt+IAT2ZVtzWog1ngVqNhCf1cVeo65XSlc4AlLMtZ1DgVtY\n7JV4JFRe8lVPNABtAgMBAAGjbzBtMAkGA1UdEwQCMAAwHQYDVR0OBBYEFBTTof/d\nVV3izSlfZMV5zU0TYh4QMB8GA1UdIwQYMBaAFBTTof/dVV3izSlfZMV5zU0TYh4Q\nMAsGA1UdDwQEAwIFIDATBgNVHSUEDDAKBggrBgEFBQcDBDANBgkqhkiG9w0BAQsF\nAAOCAQEAkj/K4/XGW4/3cgQi6bB6FYMljsjyjo2lced0Zmpt21xGB5WBFMVQnUBQ\nqekJ572/3N9rpEiPq1nr7mucvJWf+cclz7zlaScfcusfeP738AUJPjin/DkS5HHW\nu+j446vtmJFITUtGsyQ14pbSjpo9hGZPgKmt7rXRcnHWvWFZQqt/Fp7ln4RVjI+L\nuY5VWm9tBJL3FfADTY6hMHFKqRBmy9hqb8ntzRuj/D5gg94EKMZaEj/5KrXOD30W\nsItwIJxMVQm0ZNvIukRLXMaB3i2i99oZXuNOcHdjgEprfErrUSNvv1H6oSVJ//ef\nbbcPQG0wQfHDjsGWI+zLQXXOfUa1kw==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'lpHA10JuE1366pv3nI7wicHvt3o',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA DataVault 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'lpHA10JuE1366pv3nI7wicHvt3o',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA DataVault 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '14:D3:A1:FF:DD:55:5D:E2:CD:29:5F:64:C5:79:CD:4D:13:62:1E:10',
            },
            db_alias => {
                alias => 'alpha-datavault-3',
                generation => '3',
                group_id => 'alpha-datavault',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIdOFfTwYIJqMCAggA\nMBQGCCqGSIb3DQMHBAjJPLSiXc5bWgSCBMj2fV3K6a+pSI6b4/kxVjrTzB3ZvVMv\n7/5iT+jd4zeocnLIyfZFW204a9DHy/JMlySZlo3zo2aCp5fYJxouhoOBCg1gAPKh\nIeszl7XP0Cbn2/L0FKrfNTsYTw6nTR38LlOUVqqzOhhImgfvKBzLW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vEXXnQ10yS6TTn5M/w4DTWFI1zRZG5aFsgzo8geXz5KUG\n3+j2+GRTEVQVvZavPtAvTLxGc5nU2VmVU9i44f5kh0IeCvufxzQ+dLHnm26Zy60b\npFyArLtDD2eFwPgvAUstywz457EbzKhvnuef76+PDSyESIgo1OSp/LuqrqSITrS+\nKOCDg+t5V51+cGSVPq8OYCzQjBo7oWxvhIUzTT34EBs4oxcm/Z6NeZZzV+vn3r6w\npKrwUKtG7o9Bp5k9KmIkH+2J+XcLlih0MC55JgTek6LkKaQUuZHOtCbo7Lvr3B+h\nT6JbSLvrkE1hWIjzxKb7yI624T6B1uJJaHKt8CVLs1R76CgU7q9SXxxDudxqvSev\nrI5mNqD6/OpSVKyk0udFqW7bRGSNKCVBUBsZwDki0FwYhzhWvSo5dRZZXukNf4Bz\nqYY=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-don-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Client Don 2',
            name => 'alpha-don-2',
            db => {
                authority_key_identifier => '25:95:E3:C5:91:78:17:06:C6:36:B4:62:8E:10:69:E3:56:3D:6C:2C',
                cert_key => '14',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBDjANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkFMUEhBIFNpZ25pbmcgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoY\nDzIxMDAwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhB\nIENsaWVudCBEb24gMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMIb\nY3EOxgAnG9DITjP/OOxE67QFYFlDS/+JL2DIAiLm4+R6p04OEshtD6gz4vNbdI9W\nZJkRaz/WMFA+tQY16nn5oC3YzbZLn/fpn/bCKAY0Je2CT8AcguxxkjFYHL7Jk0Rl\nXtHcdnjcFJBvU51V7oe9LilKduGe2GCwsrTOA51gqa3rc1omce0yVw/jSgF86BcV\nABHDcAG1YybACU05URs/pm6aeqxGv5l5AV1VEZHgCtJiQ0yDnywNdmqW5EPC6SvW\ngHX/OUxXVh8+1Y+1AdJPl+3xeHKW8UyxOZ7DuxwkapaZMDCFTzxwg8Y38S93KQHs\nnjq+FT2Wv4hyAMDJqk0CAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUaCwX\nuSSUU+TqsE+WC99ek8CefCkwHwYDVR0jBBgwFoAUJZXjxZF4FwbGNrRijhBp41Y9\nbCwwDQYJKoZIhvcNAQELBQADggEBALHlQ3e5fJBmBS+E+UtJMTM6YAFoHibHJ6zX\n40Gi1GQeH5xamzU+DegeETSezC7WFWT/kR7LgsfcBy0fiqnFbaTRPOjjW9oVDC54\ne10hBR7AR4arOlaanymkZINYoMjFrJPRps6qVwMsWLqry6g3D07xDrXnhduZR7oH\n/MYFgZuvfQ9DMgOFUVg2kScM6uHkekBv1yEUGMlIyqJQ3JGD8/nZUfHDgEIgjB/i\nrLXrmyyxr1t2R5I8QJITANght8iS6VGsErkmuQDWXZyF32giajBweCl704fQfNzu\niCCNGM+EE346wM9G/tkP5EpaZBrUf6bzoyFYDDpKe0sdicUwRN8=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'qI77FvXeE1tS6KBS9fjtJ2P0EaI',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'zbwY62EfQRkBZ4bw-gUdZeHsCwE',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Client Don 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '68:2C:17:B9:24:94:53:E4:EA:B0:4F:96:0B:DF:5E:93:C0:9E:7C:29',
            },
            db_alias => {
                alias => 'alpha-don-2',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIjmy0I8yvZgsCAggA\nMBQGCCqGSIb3DQMHBAjsiKOSxz8crASCBMhuxw9zMlsev08TayutKlavXD0GNciN\nUIUtR/64nxvPSp9bZFbeshvUzS2KxRak1B//775lye67l/RUSC49n7yoCfgfli8f\nuXC45DtgMfJFyz5RcaeoFYMOCWedcPY5ZMMuqAUGZ/QETan5onftIcQFE7YNWQnS\nm27VB+n3oDSl87wzzLPvo3HmhS9nMDKrhXUhXVumz2vOSYamq6dUXcTxXZc66dF5\nWHLS/hXdQLMJcGib7ucm0phI+l7xBsHiTVBFkOM4ktPjERp5hxX4STZjeK5PLsm5\nD89yOWlfgHezA1kdeHooEK3kescvc0gUZeMV+OLWKE7aXnXlP7kTWMRrt4kk8wto\nOU8Fd6LDVBZTnoLLmAvQ5tj14iBOdNR7WSuKixfyF5BVb30QXuTiJHFxlF8nJKIW\nT2T8KBFQybs3P/wsxY2TraDyyOgTiTQbY0y5rukFGBI1PBCvp1LeurJ0VMtltzLK\n3RwJAh4ZJ42ETkd37MZ+AKSw+fJWNXe69cZ15U50tgpHSpBA9TDJXLLmL4EPXHfm\nqYHpl6BtdYHYVwKRxUmkw3q21gpMYjo3rGWzPdmLqJ0YleiCiVPzUpQUl3146nSJ\nOId3eGT/MPM7u/4VTQ9VPCBuYxzrOS5ybIwI+n2XXLcXJmD0lnL7O3Qvvh+irYN0\ncv1YSlnpWOlBM+PABgrMrmq/xJ24ipJsIZTIP+tKkLPUwMsW0Tlc4bgmj/p88OYg\nknfnwYLH/JZP4NTDPtqLFzEkiWlrA4abLXYxwrO2Rci2+zcKZz5JGbMmV6KAHX7k\nqVvszpiql1CkQhgkLIK/mLf9ZCELXub54sGHKfdtujrICb1Ybgu99UtSz29MyGRt\naI/2Ik2tdcq2pFlZxx6hb9wsB4FQYBQX5vo971FJERAw4aISNLlenjmkexSzCRUO\nGE4og3BK6iiYKH98WRnONzBgmbtxG42iZDN4KbHNCXd++BCc0ASalzZ44AIkXHzB\nsI/BQl0W5sQAhhgpN3cMnHwaP7oW8uxwxbFFgKJmZYFgReVXP+HUs3uZgbNcse8J\nmJbCLKClrBBkMrpsc/v9GUBAekqQeyXvhut7LpIJwWflYdM6fHPZeF8u8thqtP7d\n9aR6Ro5s1aA23Ru+qRe7LNpVoau25/7IbSImxz4rqGrAmQiFQlRjjlfKDIN+uUbj\nt/jXhu9+BydyNuJEoDkbZTcrSed/8MaHuq0lvOaECchkMK0Bpy1/0mmNFzE4KW++\nj1i2C7e6cnc5+/sJTUW1eKy2sVd4OmHHeRweEhIgCHPGgImVsocYiv7D3EPg4twH\n+VP2Z28qLt6A7+AKl4+Ri99wppVML9HLDXwacQ5j7j2xaRczW9buv5HdcEyR9TQq\nW+YtE2h0igBcfFAY8MxzgBmIQP03Rz9an2n7nreZouhxhCU0g98+0I5DfIMPwUtF\nUikl3LVRPhvTeZgqzNca2t1GZtJtlRBQI9FIfpvx98gP0U3UFhkWc6I58mVcVW6W\nm/HasT2YMCMl2oxftCWgVaIOyZmlMz4Jb6iwz2RCIBd9aNEwB+w+B3EyMpsOJRKQ\nBMSUdYyLptJJ+75tCWhuyIHMgv+KdS4v+pzrgbNCREOfSR53xLno7gE5MbObO3fy\nqSk=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-scep-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA SCEP 1',
            name => 'alpha-scep-1',
            db => {
                authority_key_identifier => '01:05:8E:56:D4:90:A1:3F:28:99:28:9E:8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1aMd84fYdKLWWb5MVG20JKWeyslGy57tB7yMpiWOOqvBQW9KVvgUAv9yd\nPSnBPVsLgbiYkAtu4taCOBLgYvbB4uGgoZgFZPKAQ58HJKxMpKcETd5jyxswXkot\nlRulN3iG4Q9uh6//mhj9CZOBYJFFcM0XrR33oQDMvOd8y5Y6Ucrb09uc/LCQaUq6\naxmh1DTPiUKRvYZtOjFDiGXkWDxLOSnkdNaki+s=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '3FRGU7iskL_bgcfGqcuL1pDtbDw',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'U2wfk3NTE0dLNL1QjM7VxPFgfiM',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA SCEP 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '85:4A:28:D0:2B:DD:C2:61:20:F2:F5:B5:D9:AD:63:9C:85:85:84:E8',
            },
            db_alias => {
                alias => 'alpha-scep-1',
                generation => '1',
                group_id => 'alpha-scep',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIr1rpEqxh5BMCAggA\nMBQGCCqGSIb3DQMHBAiryS17LfEXZgSCBMg3VbBcL921eC1hdCdwdnG6qykfySwo\n9mbLOFUoXFlCjVK/5XkdOGbURxnlF1pEq96ayqbA4P+MLwfW8OX1XMjyrYe8b3zQ\ne/Q6GMf9pdzPVXNjgqup9Qg2cfuQRg/38oCzBdAnIgcuCVkv5PYw5b/I2R49XKHB\nrdmuXo7McUCjbnkgpd7Gd5GucoTg/1kFaO07QI0OkzR7N8MTIHy0Y7pigT+FmR7Y\nhnevCJGkUQ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jmMLqtrPHb2K6u4iOIVHtX7Typjoz1CirqG90FH5mow1\nZ+h659KUzagtcZcIEddd7WXhOXRNpanq5J1JFFbivN9ni1OPzG+d3SYbzYaLczSp\njI27aqYJbWZlvEO7B+6IfBoquhVwKPm0DW6fPA3HgOjf4IqO1JAtItkXp3nGUIpl\nPjhFF1T8tAYxHL2oKa0uJifr8lTvgx6Qdh8dIkOKkiSgdizCanFzTzOK8DfUTygC\nYAnzwB928pJJZwnL9dfIua9pVZEUv2tCSY85IvWhYRiTCuk0ifE6Cej5oZZCWSDv\noAc2hvNU89PpLWcr5XabcRGQ9nAWBC+SYbhbb2UxfPuzt3JJUamcP8nyVzLB6L35\nOa8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-scep-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA SCEP 2',
            name => 'alpha-scep-2',
            db => {
                authority_key_identifier => '8C:D5:B9:85:26:93:8D:F2:BA:46:71:BF:6D:85:2B:BD:5F:2D:41:95',
                cert_key => '10',
                data => "-----BEGIN CERTIFICATE-----\nMIIDeTCCAmGgAwIBAgIBCjANBgkqhkiG9w0BAQsFADBYMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGDAWBgNVBAMMD0FMUEhBIFJvb3QgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoYDzIx\nMDAwMTMxMjM1OTU5WjBVMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZImiZPy\nLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxFTATBgNVBAMMDEFMUEhBIFND\nRVAgMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMANi3HQzbK8wRcR\ny9FdiargBGA5TQwXxpyGFbPyn23BDndStbSOd28uNVBTk8gV7DMZcqVG5O98vFj5\ntNvUEycf9V09rRaFZATGeumRiYeQprmGONDZRL5xS4VnyrSqUet+CQVEaHwIU52Y\nGCuO+JVod25YaM7DAWSOfePz4ROS+XABh7y151kx9xxGtCYqocFbNdt2fM0Jm/0I\ngUT2xdzceEcjQvZZUzPRPdA88qoIb3FKKb4Cl2xFTJcXCTrsRKVbcSJdAtoug+z/\nrtDaZFb80IoPOr/PkLuBylQmHsStnjwUNWTs0sIU4wpfZ/izWhTdYLQMXvJD719/\ngH4fSJcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUoNifO5f/3+mxkwTB\nBYgQh8vADPgwHwYDVR0jBBgwFoAUjNW5hSaTjfK6RnG/bYUrvV8tQZUwDQYJKoZI\nhvcNAQELBQADggEBADOrXaytwbOXW2V2ZKwwszghhRGoi6KUqtTeLE50VQFNqHNR\n8DuIirtOj5BaAP4nJNagkPE5/YWPfL1jRStXyIVvGUOCyREZOAo7KZB3fk4EaX1H\nxjdr1re5WFd5/pGNGJ3GTl6Uegp+3Ta5Gd60JM0KJVfd2kU0xvkRBkOEjnhWbH5v\n00Hed5yjCB5OQDI4uLpuluUQCIZE/x4c/fLoLvogVFFsv3bOqCUKt0iPDwqgdrNj\nFZhbk3+bMEptL0fnJcthVtjBHfIGrmxFJ0pRosCuy1h0hx4dSwH1CsfjhzoQrzCH\nm5+QVeu9kBviLDama7dSwO9Uj3nUvxEVQAQF4XI=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '2vYrIj8UoxVZHFgoLUJSIc2kdS8',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'vNeMl9bFa8p1-cHcGaDjfSiX_NA',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA SCEP 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'A0:D8:9F:3B:97:FF:DF:E9:B1:93:04:C1:05:88:10:87:CB:C0:0C:F8',
            },
            db_alias => {
                alias => 'alpha-scep-2',
                generation => '2',
                group_id => 'alpha-scep',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQINFcW1AtTt+ICAggA\nMBQGCCqGSIb3DQMHBAh3VtmWxZtXjwSCBMh0SL6ll11KTFNJwe2p5+D3pn2Re2yc\nMWUShEAucoxNHsCMIcibBr6QSdtxOPCrq2v6VRG1l5VkeeuzBmJZly5XQtNXCwv7\nEjjRS6HHqzxKC5SpGB9paxPHbJ9OAf4bS0UvvPEkJDt38fDGCfyb5eMJTPV28/PK\nST+BawzZ+1f/UNxfC2Qe1v/cMPKVPtuj8MZmvI6A/Rx2S1c7FqWKvHCpFaSooOJL\nQ8D6e/D+fN1U006Hux8QxMLfAtMQCxFcfggcYtDiygdclC9q0C3Oe37YUmj3Bs/s\nGjPYJDfN6CwVNU63X4VOT2HzETf0s/wsfZqTPeekQJcUrWRJVF+0uVvqnLaGWSPz\nIKEOqcJa3sP33ibUjlXL6vn7Q+xPGVSN8RMdggZunByzkKEV3CGfPEBUJJpS/KPb\nK9JsbzXZCZ6cxECtiJGafz+clW7Id17g2XleWERTI9SzKyvpcOw+DCoMZMRDvWsA\nyfYicmEDd9CudihkXKcocmPLYYpcIFKKxfeeDJR50a3hR6vkXt39UMPz7wvJPMs0\nrWZuoe8rk6WPjWpqllOsAwi1niUbSHbT/LXdV8ej+vKrJVaur2HC02o/rtN2lwTR\n5mH6nu0dH/rWlTunyir3yYgLsEDVKihYTfQh5C9401DpK3rrzYGCECvDbVXK3nOh\ne1bargS39fT4a9KHEmRRB9wrBV+ykDzKql5Un/fVsCWJHt3QJ9lLGcG79ZEV0y4s\n4iMr097Uq9ngtdOrLViaPJo2Ad86eoqMR9/NyFl7rr+zcm0IVPbdELQk3EW6gnBd\nLEQzMRX/nF6WUP2vwMUPYHx9rKp67ieG85cIr04JqaQwwtDXH3/1U6p9FP0DK1k9\nm3juOpZd0NcPPKPOF31UxTp5r3EeuR444YU2dheikXBbO2OCwoLR1tIsjqEws5Rh\nO0oM3UqAwbjNRcTgjJIhYXhuupS561R2ptoZTS1/0pSdon2bfUQYmujvqUm8cWP9\nvAbKXqU6W2UkfM05QIIAkoZ+dH4IkeIScw3V2Ihab4R1mZRnMahWu9ZasqnksMEv\nNLgW5c0Q+J4ml7I4qFgpNl5kr22aiFvjvFq9yNnZHVJ8cbLUL3NN5D5Vbgl9WlD6\nHD5FTH6VLCkcgkkVmlOygN2D75S9oWXyAKw5synITMUmyQHIdrQizu1wOPMWI9zM\nFwYvR+A4HrSGWMy0wycaJiDtGaLk5QT/bqE0Fy6jJSkiUxv/2sg+sL3A/l6uESPL\nkFfxKcl6DoH9RGekCCh/OYpTP4rl/XREF+xSLlctYgpWnOuK3xElhCA0vQ+Rql9W\nwPM3LVtjgjNL4Mn/MqgzP5y9YUbIG4zPcL6dZqobulV5pY0qb6PJ1xTJ8DWvZ21V\nnkq9hv9/FAOy0iiUmf5LKtN7iH25Hq3cRUysjRP0oPCWZuOg1k0B38w/XKjcGZU0\nSLHtFsAhJsDRKPXn3v3CmgMBDTaV2Bqc1hLOF8llS0I2w4WZbihJyp30M0vr4gJ5\nCiebirNEJ1IQ6V9zhFhzDVjNxYKkrDQM+gw+bY+iFwZDjROYMp90bhVFepJon6cK\nHwL5fsbywYRErYlWgdxB+g9hY6QnvEboeYVvDQkwtGhjSpHMV1gwjnXZTg7bsh/V\nVtU=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-scep-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA SCEP 3',
            name => 'alpha-scep-3',
            db => {
                authority_key_identifier => '77:B2:F9:12:4B:EF:BE:E0:AC:48:41:67:0B:C5:E1:15:32:FF:3D:0D',
                cert_key => '18',
                data => "-----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wy0m7Rgm/CKvxkjRkZEbJc5eERyAAAIcExzXiSt5B3ZDkfflMY5rFlD1oPf\nyhKQQnTbvaYvZcNpclhufQt9XCiQ7H9TOq1zlDKYRpAjja7K0dROG1Fk0DNiyOIN\n38dAR+lH+dhpGLz4FZO/Z+rphFoR+9pcoXUjVJE=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'wtwh1dz6-tIkt4sOy3q234ugHJI',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'wXBasWhcc4eGcYLGdFWjeci7w8E',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA SCEP 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '0A:CA:95:29:AC:75:E7:98:6D:64:92:92:60:18:CD:24:46:D4:C8:6E',
            },
            db_alias => {
                alias => 'alpha-scep-3',
                generation => '3',
                group_id => 'alpha-scep',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIlwCEkopbhugCAggA\nMBQGCCqGSIb3DQMHBAjHqTG8SGx7lASCBMhNnyAdcoxbwqQZqnKGMu18KTjDlTL/\nILaPXa8Nromo50bve7Q13vC0CSWy9emPticVYGwYmcAiIPdWId7mnW1vMJ6VDJp5\nOPE4WAb3HJO1HwJsxVDx2fhVx3lg7sqge4bDYyT4SUXgUx8gyD8w4qvkcIm5BtaE\ndmeeEhrx2CFSTqCUYpN5w/PGWdugmPGBYXUh6FMlqiD9mN/EoQVB2/tO+qby/2as\nKn9TJbIlm01GwwRr2nwFiZ2jMR6ZE53BvOVIQ9KF7xq/szNlEouAJpawrioosX/X\n3EJkMXZuhO5r97zL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EIL9uf7rl/hk7T9K/CzKzdSMOx1\n2xiY69lagSBR+XmGL0oj9pq1QHLuYMZPPWnaffy6yDItquPhIr3n469edv1KKH81\nEm5Ps+IBtxg5lHIXTi27SD8qwZk5UUjWWB/f2vssoaVdy0cJpV/Tc29cMUyk3tzZ\n45zxaPS66Abqw51+WNZmpfrPKEo17+bhcb5SjgdB9Wk2yuR0lbRln7A9s2hkENj7\nerIEdQYnM84YJLcosCUa3IanU5lm9imnlkDAfopRXQ6530Fvau7Bk2+eCQDKzOWY\njSE=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-signer-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Signing CA 1',
            name => 'alpha-signer-1',
            db => {
                authority_key_identifier => '01:05:8E:56:D4:90:A1:3F:28:99:28:9E:8A:57:CB:C5:7D:C5:FF:09',
                cert_key => '3',
                data => "-----BEGIN CERTIFICATE-----\nMIIDkjCCAnqgAwIBAgIBAzANBgkqhkiG9w0BAQsFADBYMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGDAWBgNVBAMMD0FMUEhBIFJvb3QgQ0EgMTAiGA8yMDA2MDEwMTAwMDAwMFoYDzIw\nMDcwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZImiZPy\nLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhBIFNp\nZ25pbmcgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJgkBelO\naUhZBxclTQgKr+5FIPI43dDl0Ev7f/E6FOquUfDHft92uy4317ptYCk+uV6zSZyU\nOD6nDUWnyO3d9JXpXQJLnAgrIQLl80UP1qSEiC+NIJj0SuJM6545T5/rDVdVJEUC\nuYtspzlGAcSrf9uaThK8rwigUp5SWKNnZr7KZE8fTxffLTImNx4Xghj820ocQGdG\nfHOsiBh5pnto9UVupGh9lJaQypTJB0FM1Xq/zrxaAngulTZhqJXCEzJvSYWSAoqW\n4svTOgAG9m+kipgbChUDPyEwX6ZC0Cb2r4em0T+j9rQ7RSKsuHkhG97PLIuNiGfE\nLVACjNEldRCoVmkCAwEAAaNgMF4wDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU\nk9MVLOaUwdE5qSjcLQv2becv38swHwYDVR0jBBgwFoAUAQWOVtSQoT8omSieilfL\nxX3F/wkwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBCwUAA4IBAQB0Zfsl3YfypKzo\nGZZenMZQlP0ZiB9ih7p4ZbqCdhujml74ZIA1lmkp7HPKlx9Kmvm2ct+HGEGgWjS9\n7FHHreIuUTP7meioQ8HTvpOtsayfeCkxbE3IBYeFeyb5GsiOl1XcCinSP2XuA+c8\nA9gUd7EmEc1+4HqU/B6bANJ4hFM2pqPNclL2mcfZ5t5v0O7ZX9D861wUF8JHl62T\ng6qxMODKBGapxReev0Goy8p6fJh6VUavd+jPcpqRNdMeT7dxXRqiLNIDJO/tAWhZ\nUmP79SEv78DGhMPiQ12EXK3PPJFmpsgEqmZQTGW/3H8SnNp5+1ZWBd4fjpTMBWs5\nuBNDuXlA\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'UDFhlBTPFnXDz_tiXZ_FZ7MuKng',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'U2wfk3NTE0dLNL1QjM7VxPFgfiM',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '93:D3:15:2C:E6:94:C1:D1:39:A9:28:DC:2D:0B:F6:6D:E7:2F:DF:CB',
            },
            db_alias => {
                alias => 'alpha-signer-1',
                generation => '1',
                group_id => 'alpha-signer',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIBjTncAD9k34CAggA\nMBQGCCqGSIb3DQMHBAggNOsn7iTHfQSCBMjTWH0pjyYtC0e/h/iKILpTxkvpyUDO\nWDe7ItU82GcXncI/8GKyOvfATdgHq64yVpmRftNvkIntCi0iEz8gC1px8XAXpCqJ\nn5QBunX/QEs9fBEmyfaxn/9rbp9w62FUxofxT0uH5ffhJnzkmhDXjXni30T2c4du\nE/0Isw4eBJ6TAj8HYR3Tw67JsDivpO/YFfT2JqCRhum5z3FWOlvV/1XirXdhnBt7\nTkBJH1nm45qcH73MAWEuc7c+32wKkB1gtnn2/EkDxf3kJ2Zhm8J4WhEZfIwhiusf\nf1d0aRtJLVoZt2ci38/f2IhV1OxOBYExEJf3LWeQru9i4zP1/S72NJbcJq/R4wx7\n96e08KWjAu3L376XGKy5cpYOe7Fi3os6LpiCouqvYrAJtCnrYvf6KUcf4a0+fQOJ\nPZG9aXvlovdEGNDtuU2HS9eIALxrslyuP+pN0EFxpciq01IHP+anGe5gqHLeW8pV\nkVJt/Ci8wZqG/V8+uq94wum2QGu4mKW47YtKMbC+2CYKrp/sKQrnLK4EwKSC9FXZ\nUaQ8T7dUvWUeFR2IZmtKSCTj8cSOpkewmpZYGIRBg2seH/6inuZYMsairO6MJ66c\nza2L0H8/8+pWyqgbwkxkTjuCz6U7vdb5TwJCAUtirjqbiaqbXGYRUgm7dHiV8upg\nkaJ9gtAYP6ZnjNVsu1lTjYsFmFbp+XIlCWD5/DwH1fAlNZ3dBWMRxZqU4YaEID8C\nw3PjcfoYJjonmuJ2RGMlvmdNXalXVBSSljTK8ryuY/zUieOXbjjkngCriyKxAUVC\n7wJkmQ5sh47mXvGjq6cXPSI4vtbFuQk88rYIXmffjvphx0Rf9VF1gD/qgTsFz9nU\nPEUAUvodu6Wm7OfIsXfRcvPhKv4PalL+gt+EUU2uGUwN/gJxjzVmtgo2nzvghzXG\nZXt79ug2jDoE6ZfbU2C9UBZaGQBEiH9UDfXIM7djtxbBgx6hshigEOq0lAtyIi/P\nbpIdWxFXLvGq6e7Oabknq3HyARkBl0OCbMsB63GQU6cROSoLTdfUBdHG2o8DiwuX\nVVAtUJhURp0GTEwvcqU22YDkLQNRTu0E0GgFxEKqGEapI38uuEST3LLc2OAEzb2b\nFSjpagVyKBAv0b2qX0X8amRLIxuTWceT2SoNScTnVcTmQRXefW1hIZGOZr8Qsa/E\nFnyZY+0ibHGvhj4f4NoTne6eTUx3uRQU/Kb/nwhiFOCLbfirVEBqFpwUd44yUZox\nm2sUv8OWCcGiAfTUdBJEH4fqAo3SlO1fRTR2MZA907xK00E0/nxKLWxaiRYIA9Rd\nMP5+qSokbpuvuGBs77A/U6rkjfbKVsL+Lf/NCz5zQ4RF7QuXJIn16MEQrzovhxSS\nZOpxvvxBMZt7kmVKc7I9g5ApAsX8QaqsHQnoa2gabXF7vbtuHodgKeUaWNPALh+e\n1M+blUOm1Z8sEJFY9FnBRIFXbXvu2Om+DGrNBKrZM0XT4A+6DvKF8zI7vM0ktFqD\nKh4NIoz41OsDqVJLgp17aLo7ZbkP3Nkgg3MfOX1uTC5vhQX3qOewLCMqGMp33tue\nyx0ZC7xH+OEcJ44NmrruGHiL08eDECARtREGQEMSRzKccCh18raaqxXt+Hm2wQwL\n8ps=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-signer-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Signing CA 2',
            name => 'alpha-signer-2',
            db => {
                authority_key_identifier => '8C:D5:B9:85:26:93:8D:F2:BA:46:71:BF:6D:85:2B:BD:5F:2D:41:95',
                cert_key => '9',
                data => "-----BEGIN CERTIFICATE-----\nMIIDkjCCAnqgAwIBAgIBCT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yF/L+TqSs4CObXjzbrrTftj4El0Ih/\nlnJyKhkvhfI5YSInPwByg0m9mpOhd2gdk15WFM5D+RIGjb7QAuSY+mvZJ38rzU2y\nNDjL+w3olKW/wD1FI6yn0/QmJGHhCAblXQmF7yJsIeFQEWGm43tOqx9SVuzhxfdP\nGihYtVw3\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'zbwY62EfQRkBZ4bw-gUdZeHsCwE',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'vNeMl9bFa8p1-cHcGaDjfSiX_NA',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '25:95:E3:C5:91:78:17:06:C6:36:B4:62:8E:10:69:E3:56:3D:6C:2C',
            },
            db_alias => {
                alias => 'alpha-signer-2',
                generation => '2',
                group_id => 'alpha-signer',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIzcuKtapTEmwCAggA\nMBQGCCqGSIb3DQMHBAjo6dPN2D3jpASCBMgkuEzL2utjux6GvLreFrUIpoG95yzs\nIGUXTSpm/zh00pVAuOxljq50K+YXtfAQibRiQRGFKcbVg8f5pCpOHMVeFu3x1HVi\nXB+RSR4xdVbjRv/517zLwAbfgQDdo/UhxlKa4c4fNUwXEMyjTgriKL4MftlVUJLM\nPs2FjY093PdKGl8eU/UAd3SxvLJuzvIBvSxdk58w84PyldCzomD0HOiO/DeDrWyL\nRQMVk5VXAUAssk3IYyYClY6VQGu9+0Dquiq7jYz5Vhtx9hnuM+IxTXO9PNIlHUVW\nFkTPIgdWHnBL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1xK7jdFZ/ytsSRDtpnrmJf9Oj7c98diWDmKeIUj5\nejtOCi+T7XsZbwzQaAYJqGsAOQWa5jeNWQhl53VuGER9akkHHvM4fWBevYS4ZyBS\nQlhQnsdWeUjNdIhsBo8/Wb7dDYIkLCQr73NLtuvjzHwtWMk0wLY+sx0b1qWMJpv8\nS6wqGPl8POMbKI77jDdQoUsbkzOPh4AqGClIiS5ZTFHSnXUD1HaRnKTCRvtWGOcT\nmbRGckj47BFiVAJ+TF6ZCXF15SUqQfKNjGu4lFLsLD707XFRBdyjwBlqFTVOmA0Q\n6J8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-signer-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Signing CA 3',
            name => 'alpha-signer-3',
            db => {
                authority_key_identifier => '77:B2:F9:12:4B:EF:BE:E0:AC:48:41:67:0B:C5:E1:15:32:FF:3D:0D',
                cert_key => '17',
                data => "-----BEGIN CERTIFICATE-----\nMIIDkjCCAnqgAwIBAgIBETANBgkqhkiG9w0BAQsFADBYMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGDAWBgNVBAMMD0FMUEhBIFJvb3QgQ0EgMzAiGA8yMTAwMDEwMTAwMDAwMFoYDzIx\nMDUwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZImiZPy\nLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkFMUEhBIFNp\nZ25pbmcgQ0EgMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMvLMb/g\npZaNsX+3+nJ+1yoCtrsDg1QtofNltZ4wRKYQqcarQx5pXoGNwiHMgoAjGH85EVw3\nCglv2H7xzoHAV2olSzmvkuIvP4jadrVk8XCn9FuKba5c3yqBTDwbcnA1wIhrmGRZ\n0m0GlrSCU5nDcDE6Tf2cmxurnZ+i1PceOctruPh5S47i3pKw3JR4FVa/lS4GnKeN\nKyLQRwufzx9EiePpRy8O1KZnC2dwC3yYYCPGifBRVV1f2DomRS/zTuudCewosPRg\ngYu9tPRFTN8WqxuCEHg1PjtedSwjYSFq8psbr6kk5O85wZVoLw8y0dZSeT6fDs5E\nplOndAPUAFlnKwcCAwEAAaNgMF4wDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU\nfMDw1IP5v5eKPFX1SvaJDwAr7A8wHwYDVR0jBBgwFoAUd7L5EkvvvuCsSEFnC8Xh\nFTL/PQ0wCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBCwUAA4IBAQBp5PhpwB2GJMHC\nHr6VyKgCLmO24ThsSct/4D67HbtQemfaZaAvjO/SfpHBVv6qzOl6ePBWf4HQZ86n\n+20Epb/mvzAFUF6u8vJM49A6Rq36OEPkW0CxV1GJdvP2iSku3uf+qFbp/vnaOfF1\n9LiRGbP0cOUlbaOpxzP5BmYSHm8Bssrn+lX8hez24AKlNiw2OFVaMv9mwWymLcg/\nhuocp6CPhvA5X+8IXU3eQsRH4p3b0atNXB6TZ9lCawMMgPk/XYcNsGrBagrE3bIa\nQwSs0ORNbaf5pzLmxUCa/xmrd2L0fi7Npm4FMRiIfVqqJjZTMR++wkNDFalQe8P6\nZyrZYcVJ\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'q-yWkovtKUUH60U0_O-mjr54cBs',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'wXBasWhcc4eGcYLGdFWjeci7w8E',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Signing CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '7C:C0:F0:D4:83:F9:BF:97:8A:3C:55:F5:4A:F6:89:0F:00:2B:EC:0F',
            },
            db_alias => {
                alias => 'alpha-signer-3',
                generation => '3',
                group_id => 'alpha-signer',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI//VVZRRaD/wCAggA\nMBQGCCqGSIb3DQMHBAgfrXerqAgKVwSCBMiWoJ37Acy/2ZTUNxqSo2tBuzI0CYxU\nQ0RZU8gaadYhkwA+Pb3rBWeXABEKzgZg/UdUqBqWq8kTaSPWfFZeeG8dt+ivzE21\nGBlZYV2IVwBttGGVfrhNbVk0tLGbVOlBwFOaJ7sEK6j3rHqAi/0qZXpui2bcxrZr\nVJkPgz1byldmSUMuhcDmqMgN/8xcoDtMMw3tHxf+f1z2qc0hqca2d9nNuwG2TTsd\nJTPZXcOBMW7kmmD5VvGm957s4eAU9mdmeB8Cyu6FdlVUu4eXR7foBxlywNdBAe3r\nsOEkq9D8YHlhUbZtK7Fo4mOxqUC+1NquZ/08tPilChgmaLF495ZSPbEB6XiV0pwa\nf2i9Y6Laq4X3V3lGgehB0SN1h9NERl2omS7NclFH9C+Gceg8DOECfNx/bFVXE+Yn\nCgvyQNTwYovuysZz7bMghAS8lY8Hc17RARK75NnB7O6voLWBFXWnMsDuhFyasKnK\nqc9MXBBFAAOK4AqHBgJkcR93scfauKLap7extfcBoejHGsuS/OceF0y8m3ADvNrV\nUoKBjTDxxgEsiDc+ySjJ6F30XWuMShbm+ur9QuSRAFqKMcKOo1lra+1iaaOSRhf/\nIGyPgdNGBBHC78F7HdUJEuLarHs3h82phfO/EKSuFlD8C8ZU4HbcZwVNqOAkRcr5\n8Sib9hlbVIxHamxWn0NgOMXWhE4yWdePbfoLqQN3VMy36OQv2IQZ9YWfgcMQfaQ6\naAC26WGohhEXaZvI9caj7U/knlJsKhAxj0d2DvlWIkRSKFvSyzk1n1hAgSrybZpf\neq3a2BuGlW1UIDhoKM+gXDWpAE3ic9p7dufCrHCp20nK5bLzYwFo8jN3CbWNrMZY\nJgHEcAUt8DmJcRV739an/FdFW9Pgfk/jEc04datg+kGRP6u+4yJhgE0rkxi8GDiK\n3Ia6vzW/aCRw5cPp8TrZ/MNlvnDKtLmUu14C/Udrdi6lGUQMqs67Q6qzLOKvwHKT\nIkUYF27N+H62YD4baSQ6EuyJV2RYF8di/8nhm7ks+ZN6yZVkZwBB78BxZpE1rb0q\nEZH0TyTeaSG9HHAwtdAkDj8FdU7xXqCish1nLKTQbQYW1A3CdnUtNUMiK8rt8NRR\nHWngd+G1zxuqwmTr6AVPxa175ESThOm2wX9t/kj5QstuNvl0LXGl/QqQpuAWIN5N\nh398Rjh4h6OIONBt7TpE0sU2SzPOGeUuUsanHAFeUOFaqpmYm/HaS9CIre46zhSg\nnWvDrRieto9iUziXyHpU5yS5l/ugYHpj6zff+L7IJUDgT/Xmb8kVs/2QvIUqcsFf\nElYzEChdtuZNTe4Rpk80T5igCY+GdfC+3rfWVSpbaQ3UeMFPZdK01nZ3StvZYC0p\nTCzm4m7REBxonJ67z1/OqliNevU2Uh8tHS1Y7XUQ3v0vzX5+HXl95waim8+saYoY\n85Um+em7RZ8iGDu4ScBRAqrn0V+iAjYyEwldBx6UqalkGO7fqdDwcmw8mpEm5lXw\ni2FM/IH+LoxylbEQLgUuhzv3XM8ncW0jlj+ibgYteDSxxhpHkAbImpRV6XYw6ouM\nKYsRmh5RsvuJ/sf61wLRFcG3rQihvf/NAZs40qGaTbFIxYr0DLkbMkCVilPIaW86\nzFM=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-root-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Root CA 1',
            name => 'alpha-root-1',
            db => {
                authority_key_identifier => '01:05:8E:56:D4:90:A1:3F:28:99:28:9E:8A:57:CB:C5:7D:C5:FF:09',
                cert_key => '2',
                data => "-----BEGIN CERTIFICAT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MbyXNND6IZSqB/cQOlxdwbjsLDXlQUYBdTAgLwOJAmvSwCGnQaNFk9NRqWOJ\nXFGhzI9liAJk8OMySedOiczoPGIlC4h6Mibr+DDMmPg21pCnPELaTeIH9lUoZ4Hd\nBMy+bcjhriUlnwUBYdXYPxkxIOn31747z0SZc9IiGYkL3kSsoQ6sNeURlulR8w1y\nEoN3\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'U2wfk3NTE0dLNL1QjM7VxPFgfiM',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'U2wfk3NTE0dLNL1QjM7VxPFgfiM',
                notafter => '1170287999', # 2007-01-31T23:59:59
                notbefore => '1136073600', # 2006-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '01:05:8E:56:D4:90:A1:3F:28:99:28:9E:8A:57:CB:C5:7D:C5:FF:09',
            },
            db_alias => {
                alias => 'root-1',
                generation => '1',
                group_id => 'root',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI+j4h/wM9Do4CAggA\nMBQGCCqGSIb3DQMHBAh4TdBv7jm/2gSCBMgkoDKbhuBSEK/gWu0t/O++oQggzeFX\nMWXaEBdftGsDajR3zkMhoTseMZKki/2cKri/ghnsafEwx9198DYL6wVfY79X3IpJ\ngnvyQMf+1BXICCbl0BoAJgkasoRn320g4qOA3Wcxwiy4OwEJ8WPpKhDaSX27FRRG\nH+UyjcU5h3Z1FG9fzxj+Tw2kw/4S7vNxxd4JAIXiP6yd7TgH9EzQBACib+yK3M4T\nd0+zjYSH37laKai8DDsfg/zIf9a/qX2KPc2x1JvhCE+gfxMhNXMqX0bq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udlN8r+aiceLhVEPeA8djRssYs/hTZ76TebNYbea\n1WGa+pwtGxCspuGr//B1IITx3GBip36b7nOzasIk2o0/dWqS2w5Y0q/ZHoQV4kQc\n2mkSkh+1dGg462TYg52/UDMHGhnZ+inn3pjPvFnPDqtScTEecf+AnI7VEP+MNOEf\nWb4750BB8ynNt36V+iWYM8BCZ0rbMPd2luhN/3d7/JdAZzBA6UVrJoQM/NRKnavy\n+vU1G+Uod78lrOIhtVaT6xueBDSdSdWepPHTMjLxjJrPDTS7PYgT+VIrwoC72qO5\nhp8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-root-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Root CA 2',
            name => 'alpha-root-2',
            db => {
                authority_key_identifier => '8C:D5:B9:85:26:93:8D:F2:BA:46:71:BF:6D:85:2B:BD:5F:2D:41:95',
                cert_key => '8',
                data => "-----BEGIN CERTIFICATE-----\nMIIDjzCCAnegAwIBAgIBCDANBgkqhkiG9w0BAQsFADBYMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGDAWBgNVBAMMD0FMUEhBIFJvb3QgQ0EgMjAiGA8yMDA3MDEwMTAwMDAwMFoYDzIx\nMDAwMTMxMjM1OTU5WjBYMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZImiZPy\nLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGDAWBgNVBAMMD0FMUEhBIFJv\nb3QgQ0EgMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANziBj72oup2\nX3QNFhZEQW5aZqv/4Q0jp8bA6mdNYC0ZFVHyE3OP0E3myc7IJfGW1mJH2ojtJ1ms\ngB0Z3DlAgec76kwo0Q36MLNmuB/DAN5+4P3wYhW3eCRgfLWcdzkYTRYxAL8O7XuK\nBVOPVt34CRnYct9pPojpLL/goi70bxQ153+ZgO3zJPdmT7vPMNU7pTBFRYUIpHRF\njwo6qerCV2AvveXp4kjJe2AHvbL0JCN+pdm0lFG7WY0sQN2PLei+qplRWkM8eOjH\nrPMv/C0/Saqly37QapyIqq/7jvxz6jv0F0uBbc5tQmT4Oidl/KNnBZAdNpKx4xoB\n3swjYPMYPysCAwEAAaNgMF4wDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUjNW5\nhSaTjfK6RnG/bYUrvV8tQZUwHwYDVR0jBBgwFoAUjNW5hSaTjfK6RnG/bYUrvV8t\nQZUwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBCwUAA4IBAQCoqYzWPbowgJxmR1Mb\nIMhyyg7VdF44P8e8Sv2h+i2LaWBY6HwUVkDByqCEDysWfvH4RNzjNNiWQ10yoiFp\n59NQcNjXC5GMZZYdLjB/+OkVUAT8KwV+GMeB9LTSju4yMxmvtjj+auVZmadADh1b\n7/atPtRSAH/O9CJTXupoceh/AXeYV9Vx2J7Y4cujHIH3H326QidnR9zeUyha8wqF\n1/nwFOwt5CFZ89PjyAl/D2g0IowNNHRGdm7oLvQAR8HDwFvlS+Qpc2PLYiqGG8eo\nK7jxPAQWCvdQU5b3xFYUehK35E58DTGA0wnKrAxeB47ZrZF11jc9xrMCGg2BLm8R\n+UwW\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'vNeMl9bFa8p1-cHcGaDjfSiX_NA',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'vNeMl9bFa8p1-cHcGaDjfSiX_NA',
                notafter => '4105123199', # 2100-01-31T23:59:59
                notbefore => '1167609600', # 2007-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '8C:D5:B9:85:26:93:8D:F2:BA:46:71:BF:6D:85:2B:BD:5F:2D:41:95',
            },
            db_alias => {
                alias => 'root-2',
                generation => '2',
                group_id => 'root',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIEnI8j/VpMrwCAggA\nMBQGCCqGSIb3DQMHBAjOB9BwxNB5EwSCBMg04NszE3X0wi5M1i0RogK8t+aj6fSy\n4ZA/AREIAgnrtBrpDHA0m5ZY+Sl8TAOXH6INtTe0ZaOYbLWQ2ykKViQoC41U5Q/i\ncM+qGJBeVTk58OOsVDZ8yzktxA769hHrfE5tEw/pf+oD0kDtGI3qkBIfTTMzSIfI\n+Lrou/81DBSqohLQsfBX/xnsOO7uOVZzHUIVTfaOK6K5DUjpmTNuBx0WeOy9iQWD\nfaDwLenCefi8mJ+Mlg1gLeM3KODcQ1XYVpfAmyzm5y93dq3dwOOqZ6gi63CqaFwD\nisXtXwV8eBVx0P1XM+J0tkwRpeGz4gFPfwrXfHmhvxcfrC4frWrH8q42xF8v9l+B\nP+pWM94y2oVjeE4KOnh9aRWSShrcrQt5n3JUVWjsdVRhgwU4TGrH1pzCJYgtKENc\nitQYlKkikS5t7VbGuCdjyhhNU3BrXux1vpbo+l5O/071udUnSoA/ZLlAA5hpnkNh\n5T1N6a7cINW+3ulLQFyCeqqx5xSaPr1do7PWOwpoxt/z7SCyTSuf06NZ97HlZcNR\nhtwLjb40Wkm6RhkkucxmceXIgjrHC15b5zMQpseZT7NJ++nY6MsOBaLRon+V0CSW\nUir/HpiQD28fJieNKKRUGL099kmk8dWUCtuEUh1+vPwIhKomLbA2pngTqiFhEov7\nUWfk0+G9yL2x/maLzowyc9WyLcx2JxVV+Ie/ZJJLzsbs62fyjaRNkHxW/dYcEs8j\nDLEThLTq8mg0BChol8Z7zGceAu6rlCu2S19dYSIRV57gQNn2ttso6ubGqJxSZcsl\nKIIpo9seJTMGFaM8ztXmPEazX8G/+oIIe2kjC2Dm+HmvxXktdzASZCoCmvbSVORn\nHKQV2zZFbfRtnb9Gk8Hh5IJp/xgzvCterG4JqJQAnS3GUAjo9WN75pJoGp3E5mMr\nIoFbqH9OHFWDvIGK3ps2s8DLR67njeu2z+3bseabnr3Ay/qaiqIYkh3zLdpKxmIF\nWZrYzlJBLPd3HFuxOd6XWJTOP89u3qnwBjzvINTOQjLaTBFBlcxOk3mpB2amNmIt\nCCy/DuPjsv1kgoriVk6Dxm102IB1TxnSvvY1KhxAx3LtJYHooKoKW3HUO+/rkOUN\nx0+/Q0pf/bOaItsqOez817onQJswXkaMAnG9Ln2G90FZmBmk7kDpS4RaLFFvFvjC\ngR2NamklQI3q0m83+mks0PJYNY2geQQJDHqzZRRqC1f0nHTnw77aFcevHdz8HHXd\nE8uvYbRyBy4Wfc9gWf1/vX7mECI6U50CtjX5ArlZFwP2PjbY9eVIp595d/4a2xOP\npDwhwZl6SBKlx6EIS7V3iAdsxdfjAbv2xpIvqDRzDl9nqJMmJc2W4JMalEtpZLzd\nByzMwUVFsHyKrHEaOiXm3JlDyhVy9DpmrQbcBjaofnN/Y5wlIsY49B+Ff1G94Iwq\nZD9oFBr0/QJ7blbjisuwjW6nb6s8fMGa5xP2lfpEyBqze4bDnVyQXNFR9TzNYSTh\nTwN6m0GJ3bdHhOzCLSUFg5DX3sBKGDS6M1hi4YBceqJjm4Ii0b6nwtu0S+qQEdiG\nGHxJSC6gC2QVo0cJxGiOZrOQndNBqje3MRfJVmnWr5jXuLz24f4Zpg029TWyk1Ew\nQs8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'alpha-root-3' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'ALPHA Root CA 3',
            name => 'alpha-root-3',
            db => {
                authority_key_identifier => '77:B2:F9:12:4B:EF:BE:E0:AC:48:41:67:0B:C5:E1:15:32:FF:3D:0D',
                cert_key => '16',
                data => "-----BEGIN CERTIFICATE-----\nMIIDjzCCAnegAwIBAgIB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YTFj6NqgmQd9W0+09aOrFSFHnmyaPRfxG/9nS9YkeiT42gYh\nLv6BkfmtDu/gZfyixlYUKcozpvsLodsmGatZj1xehp8PmqhbMMjejprWIjkPkQTL\n/gVPk78dYHbcMyqzyT02wNRtE8J5oqEDrXVrgN4sfVC3rZKnf2T7Nl3hDA+I+O/b\nFQ+n\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'wXBasWhcc4eGcYLGdFWjeci7w8E',
                invalidity_time => undef,
                issuer_dn => 'CN=ALPHA Root CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'wXBasWhcc4eGcYLGdFWjeci7w8E',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '4102444800', # 2100-01-01T00:00:00
                pki_realm => 'alpha',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=ALPHA Root CA 3,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '77:B2:F9:12:4B:EF:BE:E0:AC:48:41:67:0B:C5:E1:15:32:FF:3D:0D',
            },
            db_alias => {
                alias => 'root-3',
                generation => '3',
                group_id => 'root',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIpsRjPx7RJ1oCAggA\nMBQGCCqGSIb3DQMHBAhqqkwywBY8bQSCBMj0UBNbCKok+l5iuw1h08o3Uz4GVIDm\nd5QH+bkIjiBNiaQJktTikQdskID5Xk4sixG9VUD6TWz0IrYE290zZRkxtLc/P7rC\nF+5EGtzw00BM0jdNhc+H9XvYgwj8w9+SpEnzlsO/PJ9a8RYqmyb1NZ+/lr7V/lez\nV7XRHXAcgEsyYIQS2U84EAnfv76UgGoELicAAhWEedZr2CPlqJHXcq3eSs9W5e28\ni82IfwfnlOjuUpv2z2hg7wfTmqHMdM0dogayAwa734mQ3mQlFeP3LnN+OWlQs6KN\nfqf1ed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4gs4ns/Xq4INjGy+RKWwklkZ31I1mN\n7rQK+1SGFeq+jhOWzugt5217mutZb78+4SY7nd4A0njw/Px7zbu/5Ob4Th8067Dz\nDEiPSp3+4B6OTXb8PSnzyKVnEWJwR1Tj4VtgdRqmu0eHOVMQJWfuYHrJvPsOFwBk\nAYv7qZYYMY243OehTkwNPYmSrQ/ifZEkddELZBs/KjOetUK2jxjM0daX3GlVZnoR\nJlIKJKpdpnlizrBgTccPIT1rHn9QRUXOIcz+p4oWMia6RwGxXkcfRA10mGWNQnCv\nQ30=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-alice-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA Client Alice 1',
            name => 'beta-alice-1',
            db => {
                authority_key_identifier => '13:0A:CC:77:DE:8E:E7:9B:37:D0:E5:4D:8C:26:72:F7:D5:5C:6D:4D',
                cert_key => '25',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBGTANBgkqhkiG9w0BAQsFADBaMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGjAYBgNVBAMMEUJFVEEgU2lnbmluZyBDQSAxMCIYDzIwMTcwMTAxMDAwMDAwWhgP\nMjEwNTAxMzEyMzU5NTlaMFwxEzARBgoJkiaJk/IsZAEZFgNPUkcxGDAWBgoJkiaJ\nk/IsZAEZFghPcGVuWFBLSTENMAsGA1UECwwEQUNNRTEcMBoGA1UEAwwTQkVUQSBD\nbGllbnQgQWxpY2UgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAN/8\n8V/ini5h+lbLpWO2BCdcrXs5eFoalFqojI2spZSR5+RDXgYtSL/yAgd7++du9s7O\n0oMZ2G2LrjsNELE0L7rpawGOE4XJ8So5vt63xHA37T23j+u2auu2hLAEKqg/nBJB\nk2/zdrX6KCAdvicnRuDFoTNW/xeC2KhPTzpP1ZkBdhiBuywuVIMXTB5+gMXrqU01\nChOQoiH6iLVjZiczgQD+m09IriSbQ9w06z1b0w18IEW/arsrD3c93DjPP8b//xYE\nBFTd4vTRo1fTf/l5PnCA7fDRFGMPdRccjI/5HneAriCTalAXIX9jYQ2tu4KnNw2v\nVD4aHFMzSVp7KUYAmkcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUaFwc\nLaVMq7euXRuvCpMqOgw4oLwwHwYDVR0jBBgwFoAUEwrMd96O55s30OVNjCZy99Vc\nbU0wDQYJKoZIhvcNAQELBQADggEBAONDE04LgcsqQZ95YkOUVkYFguGl3EChPNdz\nDwj3kxScQD8WCEhrgKB6cAkVFyzf3mV0Rtt73waCAnVHnixL40KePJogZiG71nNV\nd1Ayw3mfm9bvP5McLzG+Hfjt6NYHCuchKUftbJMj0IYmloaOXo8OKFm0Jcol4aTo\nH6J1MxGg7pg8YIHU8h05AUApGOlcA+qb13L9twV1zTe8mI3pVj2AlUzPVVYtdlVN\nYBilQ1mMF6GGUpzO/RfLJwOp4KqtPB7eaOOW2CmuVblDdWZYBGQ2agmC8ampso7m\naf/KcKdyPgBFfh41HVMRrd5aftjoC5lj+O2REJMneoUciI+ZmTo=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'l2ajTRh4IM4Xuqt06roUxMtdZEE',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => '3z1luFO6vA0chsdpSm5CiDv12xA',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA Client Alice 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '68:5C:1C:2D:A5:4C:AB:B7:AE:5D:1B:AF:0A:93:2A:3A:0C:38:A0:BC',
            },
            db_alias => {
                alias => 'beta-alice-1',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI7wCOp0/4A54CAggA\nMBQGCCqGSIb3DQMHBAjJfxFDafCgRASCBMivjolg1pPj5Tyo/LJpAxqqv2xmXuhd\nfBwQIHSyxztC26Z5k/nZTRkZH8PrAtfIfvWJUan/zNECYAo8YyuzKLtBxdF9jRNE\nZfaV+JdoEnLledBtjNe4AWIt3h4OpJ04mLUtLpmOsQS+hEgQkL4NlUnR3e92cAcP\nXNC5t518JEOk582CDTQH2K2MzTlvCMuYRm2FFRr02MviSR1Y0ip1CyJg5HPzFUEB\n1hqjVfCNnWf891aKuMt6S4tMRPz/uY1uEW2zBnmV9ItqIef9WiBY6T0veQe08Wyl\ncYkMBxmMjjpBBzC8WjUc6TQw8IF2yaGAyH+HmuRRj09CZEHpb8eajN09iJVFXLzc\nqN4e/E8UDFAWqTtLJbt/QPh8UgUUIit2RO0ujwbxYnXNj+/vCSODlZ/PL1pbiQwh\nlLIxbUKTbxutzH46JBm5ecfOk2PezUQQzsmfbFG//Cs+Vfi063AowxL1kTtqF6T2\nMkL00YlFxNOMP8PFArTwVFxA7RgpXhXD9od/8ifoQshyhwkoGbc9yXjic7wbuPWP\nd2eb0LP0FEfeE7zkkjDtvBfFFzIQ0GzBn+nyPiCDaTrtCQ5mDkqOwb2Mu9BLYauT\nUAsAXqR6N6kKVEqnMO2w/MpxCXFLbulw8yHRVKVg+PEugkOARUq7B4Ju3bQ371IJ\nMx5IYiliQPDnD+RgP4FWqLSvIa4QpkQPrTlcSvB4kUMIAZyNxxFHX2wegBkNiFWA\nyL5rV5c2PhNsTILyaI6frWWj6Y3QuvK0+sTDs6EezRQ4HTxShvr39Wtx7fPYT/Lt\nFSr6pb0kq73vdYKURq2oZj0CU8iDQTPp0ZGlCwjSNs7wDiyYw7m/hg4UYHhVhzls\nkVA8zZscvZJ3bnX4gSAHMCviyNIIFgB5RzQQZZq4/kwm1phrwmWGk1jeF3djHbDU\n4/7YU1WPcgQ/tuZ9+X3lNl+UISu//P+sEizQ/76g/YlnidQ3XwhAIGZtvA9alev4\nCK+8akBO19tfGkOGRKPRATJflRNiM453gLGA2gCj0DeNgAwyHKV/NjOxeIdsj+Ib\nx5EEP+M34494pTkfVBO/MjKOGQDJIlYAo/AK2TKtvxPcSVOW5g8IDb3Ha77lfzbA\nQo/HYK2hX6XQXbnwdptlKJMx4LtsgyCt4ABAdp1vjgZ+zjQw8bGRG/JQUpnbBpuH\n8A47QNi5xJVOZfi7uXsgufcmrcIoOdVWhxmKVsFWpT7UAc7PuYQ980oHzf3p39C2\nEJt13VrHxTrBOufWcL4co/ulAkyTakrdL2Eiq0EWuYxCfGErPiybpahDe7WjRmy9\ndgu2aiXVvUV7Rql8ox4aCfTzuZ1qpoeqKBaFLrmECivGnfoXjf2RW+o/lJShus+r\nhpr7v8JiOibCN+4mj/l35f8+pQww3irRInaDAX16QvwAl+/8AsSGmDRdKH5atBnb\n+b1TRJSnLvvB7v2ByvFvhqOdTV9Pq7NGRpeEnkrKFU4V3O4/94MuvVI1V7mHNYph\nWo41uY3nrP+Qg3Ljlrs7BUbkjDQBi+slOoy3tDQMBWF5OEpf3Ob/BHSGV4CA5MTk\nGV9IClZaFWZHiL64dM6syeWMBkkRpsv+3FEJMHUX5uDdBjq8DQh2Ssu+ztvro1ch\nUWE=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-bob-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA Client Bob 1',
            name => 'beta-bob-1',
            db => {
                authority_key_identifier => '13:0A:CC:77:DE:8E:E7:9B:37:D0:E5:4D:8C:26:72:F7:D5:5C:6D:4D',
                cert_key => '26',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgDCCAmigAwIBAgIBGjANBgkqhkiG9w0BAQsFADBaMRMwEQYKCZImiZPyLGQB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inQgOYc3Tyu7fZErcdsS05H0WZvlFMtLrFpGiHmExzU/ywj92c0doj\nWMbULF4W4V57zUTRuzjznAC+rmQ+bE/DF12oh3/7VUuuwan1\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'p7hiAKvh9r33ZoHUr7S-JbACFA0',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => '3z1luFO6vA0chsdpSm5CiDv12xA',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA Client Bob 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'E7:65:32:26:BD:AF:5F:1F:FB:61:FF:49:A4:84:7D:54:65:98:78:74',
            },
            db_alias => {
                alias => 'beta-bob-1',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIg+R81lOCLEoCAggA\nMBQGCCqGSIb3DQMHBAjlV8kKK7npiASCBMiglDo1au4Ziu6VyC8nzFXvtdjeef0f\n2mvmjKTUlOE+iMCLrMa7UXjRxkmJZ+BB58S4Lyzx3MaMD5ZeMVb8HwAjlIMC3PQ2\ny7+sP0eIIX943huMRIQ6OduzoRgYNE+5Q6MYaI7x+dYzDlaTrqrhihNMHwQvH1jK\nEhXm1JXb1fyuEC5zv++4N4/17kzSfrWEOu1gao35KP3zweCpbOxrhs+DIW8Xa1po\nfcrjNT83VBAcUxtAJrrldie+Fw8zxGAfTP3ZBhPCNasiTXkqjmNNvjNReor8RRtp\njpjM5OLiN82ur19CViShmBhS3gdXDRmS0dLJc2a5++hSGNcm0Q8chfbhsPV0pT9F\nsfvrMw0Cr+tOcxfWM+8xdgInrtcg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AUHB8doB310ZX3ZXFiTv5+e\nX5qkdIjrd2tM5lVLRTh60pq9u6dpyq8WB/3XNStgJk+cWh4dr14+Epc7bwErvnrp\nyF1HJCbWFinP5m6EnGldPf8cgTSPqBj4dNoyc9qs2AKd44ZNyT3hCH2wyonUNyxl\nf3zxHfR+iv0nC4oCl6LRtzTWljiXMnSXEjIP2nuaaZ6Or23ZsqvIjXf9h1/Hs0BV\niJ4=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-datavault-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA DataVault 1',
            name => 'beta-datavault-1',
            db => {
                authority_key_identifier => 'BC:D8:05:7F:63:A7:7D:E3:4E:F5:5C:ED:77:DC:F3:C2:39:D4:34:A0',
                cert_key => '21',
                data => "-----BEGIN CERTIFICATE-----\nMIIDoDCCAoigAwIBAgIBFTANBgkqhkiG9w0BAQsFADBZMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGTAXBgNVBAMMEEJFVEEgRGF0YVZhdWx0IDEwIhgPMjAxNzAxMDEwMDAwMDBaGA8y\nMTA1MDEzMTIzNTk1OVowWTETMBEGCgmSJomT8ixkARkWA09SRzEYMBYGCgmSJomT\n8ixkARkWCE9wZW5YUEtJMQ0wCwYDVQQLDARBQ01FMRkwFwYDVQQDDBBCRVRBIERh\ndGFWYXVsdCAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5pOLHaQQ\nyWTOOEqHvxPbJBbUt0Go8v9YQ3ZyCdd/8CwEZOrbWSa/FHf+/3DqBfX9RjyBrs2z\nNjCzbVC9aqGx8v3ReOatGJFs7MFjZskLkATRkQDU42e5UYBbHM4QupTjscZ5OhLB\nolvpVbRrctSW/prTnXpcJp6Wccz9uoC9F23FiQIgkWMySnPfL/c2l/5PXLd5XyfD\nflu5YrpUBnD4Lc9/J63a1m2xkWlqeCVHEYWGKWWTgcJYcW+5VirmifTlEeJX4uWi\nml+Ft3NnmkXmED7uVcnDCNu95kEcVTvrm4LDXyx9/m8gs4eE2v+T+x7k27vhxiVr\n9z7Kwvc8BWHGEwIDAQABo28wbTAJBgNVHRMEAjAAMB0GA1UdDgQWBBS82AV/Y6d9\n4071XO133PPCOdQ0oDAfBgNVHSMEGDAWgBS82AV/Y6d94071XO133PPCOdQ0oDAL\nBgNVHQ8EBAMCBSAwEwYDVR0lBAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQELBQAD\nggEBAAcOw9Hi28c9F+/2KTged4NGQdrJlOF5sHSEMchtSL8TVkoWrSzdQAGxb9fZ\ng5uMOh6vOB9gy+VQ7+kQaM1j1Yt6gqAmZSE4aXAyldWZq3guOtSRG0HXAVb7Ym8/\nvkeRbDuRaURKVBjrAU8uJ67oaEsuq+SEKQ2C/nuHIPb3OkAQNCwDk0jA33ngOW8m\nZZBGqBzxGXgJ4cq8EC7kK6jbR2ylB1Pj06LZIEKjFrhB4u3CHf6F/FSHUjhRtAki\ng0aBRUVBZQm/wmy2sfvyI8fHJLKeTDd97IfVelzwG4RtEv1i+UASBq7bIxlvvltP\n1oOfXUfnts3Qnt1uBBi7NLj2I1I=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'vjT_fiY-uh5XeCkudb_mocfSsxg',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA DataVault 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'vjT_fiY-uh5XeCkudb_mocfSsxg',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA DataVault 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'BC:D8:05:7F:63:A7:7D:E3:4E:F5:5C:ED:77:DC:F3:C2:39:D4:34:A0',
            },
            db_alias => {
                alias => 'beta-datavault-1',
                generation => '1',
                group_id => 'beta-datavault',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIu6T/WtGP2WcCAggA\nMBQGCCqGSIb3DQMHBAi1+7wmSfc9XASCBMggmMqv7FL3EBvw98evz1UdAddzWrBE\ndNnVWwdObe433vWRbYbC03WNt2YHIoS/V1wTdX/V/mvDHw8bz6IIt3mRQo9gL5Kb\nQdYmaDiNXgtB5mwQD0YpV2Uirip8sSb4xVMDir2utTO/kp5k2kKorpPNe0hkcmBo\nAO8EKAeBHgvhw1ulihWw/LjhjoSRu8YMGQZkkfEhaa+nElgtGCyLn/5ZPLzAZVhf\n5OdEr5VOu+Ag3zavp839Hj0Tp/IB4LJQHB2CGeO+ZG3zZwHWK5bzbiLrp5VRHuZh\nw22cdBqAmaHYT5MclIYCbnw/3dL6NBLT9asEvEEH+QoeiCigdd7Ope2m+Fb4MyS3\nMtu/fRTOiBWEHo6es8OOexu/n47PIaRl14oxPhZxNDHOmVFWqsgPYepkEYxgp4JL\nzgUKJH3BXiSdG5PQ368ropNjgHQ7w3MxY3YalsAYgviE2pX1dN7w32VC2KvanKpB\n/i2lQhf0fs2qYPpH2vRzIkrdQO3dmzKfNJF3EFtGbSwkTPDEgBhRn4zN5ef35rTG\nsa4FzmrVa54Iv6mLDGeQPM2xAHBTdEx2tHG5dIasKjanEbJ3k3+Ocmn3m75O5wp8\nl0V7W3VeDZSAAaC4TV2O5lT38Fan6oH7ucQmTRN7juxp/meZcz7FtwMhb4ae6hEr\nlKVBZ6LPuxcfEMRxXSTW/39gKdUCxVskHGF2fi7oHpMJEnk+I18RJIuPU08F4Mg2\nRCOjTwdovSTBc9+gdGaFnMSEjhElpNgp6uPvPfARgpqH8tB3nWu2naoOOpkZ4Xey\nUS6Yu9PbXfItu96lsPGIaB48PHUrzv/supZAqWyaG/1FXlLs+qoNCAYZqZLZJh22\nXLFllYcBSwhfh2x85+UcMDu6k0DxFh6IhCkTutJRt/9yn1pWSD4dvIpowJIf/kAr\nbbla5ZSkTa9koYuhsnshJNLRFBbGJBGt/i+xifQuFLP3LAEdScwM1j/f6NXMcA6K\ngOuLrOp/xlem5sIZcJUxzOEQUwaSZZBbwSxfZYJYixnuh5JR4gIUBBPWZBYO4lUV\nGSLsJl+xqAqcOBzFoPLVLSO1MzCu6Gr/B8CkN1SXaX37sUADCqdJvmcH8wMMJoWj\nN+l5OGmJ4SmQ1zLheFsd38Dkhm7mrhIozjo791VZ6+IN3JTXwaRaX8DBUwEGLIwK\n/H5ePNb61ejQ6FH+qM4Izvrp0TkufBdKi85AeQCWVOIKl1Z0QzFElqxSnmfK2SwZ\n6zmjC/eMtkRL+giWzI8GHQPYgq8e0lL3n/cN1k9d/zUyZ/TEHgOwJFC5+B0rh59j\n+bHAujlg75z2JhaYaGNo1cMeRh30zoud5mnnq+5y/omnQt99AV4/989MgPAZvr04\noaYyxX6LJNa+MnQZkIyL2vFwGlikJf3IsrxWgdBUrYjDPhF2gxjhx+D4VGAxOeTV\nctIPpnnzwCeY6ZLZ4UXIKZFTM7ohl5HJrPKzpkpbqeS3bmMoT4tK32M+irrfKQ3/\niiyE9q7Swf2s8Yu6RXVr+EmMRHIDlPHoIuU8HDtE4ivX4pEsZRS0CH/7SYxbUApy\nE7jA44xqASKoP9dAmWgqlNq/z6S569rtFW6oz/g21Bp9/D48nhwUqYWbcXVShw1u\nopg=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-scep-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA SCEP 1',
            name => 'beta-scep-1',
            db => {
                authority_key_identifier => '5F:AA:16:6B:01:FC:E0:C1:D1:A7:42:FE:35:20:40:E2:2F:0B:45:07',
                cert_key => '24',
                data => "-----BEGIN CERTIFICATE-----\nMIIDdzCCAl+gAwIBAgIBGDANBgkqhkiG9w0BAQsFADBXMRMwE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+udgacEZaRiDAmD7wt+gR\nmlVFzU001NxbAPc9P+KoP1ABj+mx6+mQ9aZhQJVcXKbArX/6XIOx2m0JjXY53ikD\nBI8ElGZ3yI4tOySnIPCQTdLLdnhQ+ZufNgLq\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'OeZkHdf35j2sRVaDpZKlGDZx804',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'xCvDfhOr-JiMb53tNR8BIQPR4q0',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA SCEP 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '2F:5E:65:DB:EF:8C:33:20:7A:2F:EA:4F:40:C8:AD:A7:0E:ED:5D:0B',
            },
            db_alias => {
                alias => 'beta-scep-1',
                generation => '1',
                group_id => 'beta-scep',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIKnMTOt0IMLQCAggA\nMBQGCCqGSIb3DQMHBAjJ4ixcE2vtJQSCBMh27T2xXaqYkA2VrrarVUCcGytz1A6C\njcZpg5HPHvVx+S3I9QP7gC/N2B6dC/mvMgVxQurljxM+5BztOwjm6MlttbcjU4He\n6c3O2Qo2OO66MPWAUNJJi0j5Webi3gWRldUg4h9YZQTqQQWnlbCBwZGBwXVChdaG\n3BlTqI/74I1y4stpPBM7z5BoB0HH+DV1MSwFf6RrYeAZwueyj0L3M9FLPfkQvVcT\nAnVenqZYckvEgMit9K8WJGm6/04RlyH8PL5rHkDOF71GkoQwxyUI6dwViaOkDppd\nZI28bgrG1L5DzLDQbvoFmM2eLIXs5HzXhRy0+KWt4RzApkJA0I14mOAGkgwB1V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m0BWMdODNRsG9QqjL9++/4SmwCeWah7MM7xoMJ8KAmj0QE\nRqT9XWl4KAkO98PildwCuWkuKl2MHiMXBcXSgWj/n8Gq5FGtwees7C4uoDlxvTvn\nhubwP3GiYGDbPhfuyggPc7dajOgu7OnzCaGzzU+cAPIyFvzynUn+MqU5wZdJ/DiF\npbZRZ+95JaEi/9tyoy6f+duP565sgTchJzfz5at4SjCVSrjXzo8yatYBSTu9nsjN\ns8E=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-signer-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA Signing CA 1',
            name => 'beta-signer-1',
            db => {
                authority_key_identifier => '5F:AA:16:6B:01:FC:E0:C1:D1:A7:42:FE:35:20:40:E2:2F:0B:45:07',
                cert_key => '23',
                data => "-----BEGIN CERTIFICATE-----\nMIIDkDCCAnigAwIBAgIBFzANBgkqhkiG9w0BAQsFADBXMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nFzAVBgNVBAMMDkJFVEEgUm9vdCBDQSAxMCIYDzIwMTcwMTAxMDAwMDAwWhgPMjEw\nNTAxMzEyMzU5NTlaMFoxEzARBgoJkiaJk/IsZAEZFgNPUkcxGDAWBgoJkiaJk/Is\nZAEZFghPcGVuWFBLSTENMAsGA1UECwwEQUNNRTEaMBgGA1UEAwwRQkVUQSBTaWdu\naW5nIENBIDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDrEMOxo12G\nTXGlX7Q0uW8jnHNWjKoLnoY31/Vg73g6E33xpM3HkFX5uWoUiDl8b/YDvvRQoOeT\nkQ0fZ0gYfsDCzyxrVIFXflF6GyCPD81i6MSau80IvIK2zvD559RFRqlkBFHikwz1\na0ZzFG03QJR1+x4cDT1huiVMAN3ZKgOryQDoTGxEZd5ILoB+rgmdockm2mX+B0ki\navoLbVUrjAYhg/2v9qOXLebhcrOZh/t/2Mu4OoptKqwQSpeeZeaT6d018zhvSMjk\nE6RWyFuF84iTUWvoz4Vqd7P47R8qktCtFbkqPTCe7YIjDu1zNg1jcyLgUYOeo37q\nM6Zlumta+xQZAgMBAAGjYDBeMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFBMK\nzHfejuebN9DlTYwmcvfVXG1NMB8GA1UdIwQYMBaAFF+qFmsB/ODB0adC/jUgQOIv\nC0UHMAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAQEAD+thHJfm2G5aAyFB\nO1k/z3BFd2wx/ivNtmuTOkQDtM7Ji7H9WBiaj08zgdxSqnYW19iZ+esbKcs5zSnc\nRuMli36GJDaLPLoUT1SazmecT6L6duHKqnJep05Qh9A5vz+RwuMgcCuCNmYxH0mD\nXBLYbqrdcKG33rTqyTz/WXQ0wkoPFzenLH1WyoFPO6kReni4WJ+9Pt3F7NxEu2DN\nE7+JBZ/i1+AIaSvaZEdGi1WPinjPjeVJ1YdfIy3pac86bYlAc5sn245PjD6quzqf\nGXM+mNaEMYhe2To6H79Ls5cdhN4Lyjo6zMFobyjo8mL2vjtg5H3PeBWe8Zoyk5Gp\ndetcwA==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '3z1luFO6vA0chsdpSm5CiDv12xA',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'xCvDfhOr-JiMb53tNR8BIQPR4q0',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '13:0A:CC:77:DE:8E:E7:9B:37:D0:E5:4D:8C:26:72:F7:D5:5C:6D:4D',
            },
            db_alias => {
                alias => 'beta-signer-1',
                generation => '1',
                group_id => 'beta-signer',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQImRPNEYrnDicCAggA\nMBQGCCqGSIb3DQMHBAjuUk8r3cto8QSCBMjCsdgjuULlQXmoPorx5FQnwqeKK15N\nXSJMru/XJ59ER3b9IUG4VFsSrx7Z8w/gMbxCr/wzN6fAS69LWDBd2bc4qJl/LOJe\nt+J6HmF6k18vNmOEw1yKRBmQFYFjaihmPYOvxSecM8L46PsZiM6/1e3wXt5hVCdu\nzM/3gcA1ZbiINGU38sT9vXtr9beZoCvBKKL45PxWJBqidkzU6FcRIC+pHewy62yD\nNYifD1MvQAe3k6gA4jlM4gjdMHCrR7tXEl2xG3/R1CGcutBiDKFTKsC/hR5Iy3ms\nonz8bJ6MP/pztV2xledUy4pB5w+ZRdPSmBo3TPVGX2w0NufYOBnTxUa6/Qb4HZ1O\nsjc8oUW6bM/XmEu4lE5eB/x5MPjAH1/jYbVl3CQ22/MrhRzn+VDVFYB2dpzoMVn6\n3Ej106V8Mnaz8qnli5n/bBClBrgDx5laq86L+Brvc6GUFZJahnQJ7z/0JgTDcyFw\n+eYBMt777QcYI+2zwkK+wtFxDPJ45+e0SUetf9DDCVpOPxh0CPS7WPGVr3QnQxVd\nFJEGEm2LJd+vXUFsKec7QMZCcntsUXvhB6+rL+d2ZsJ4EfPyo2eHD8SSf/ZnpzAA\nBjnX1O3K/M3cZ8QTHKWcBF7EHO6FSwiyK930rvgP6LSbrhSgQcgeNbbWO8aWbUW0\nSppE4BYnrSif5mhoeTggPHRs+aD+JrOr49jIu1z7tbsM3YSt8s8HG8viPcXUrKC3\nzmdiVQgPcizP8jq7Dp4D8t7Lb9Sw1uIheF1pydFmtuOyAqREjYtYDUyOU7/qoWU4\n0xjruYrgt2v/6G7DEB8c1XWc8BCaSmmhOph5jgb/BE7CyVgLVOeQergwMr5/FHPJ\nKlY4Bzrpp94Bifu2pwjNh+4WB6g0WGdhhKlXBPfR7x+iS23uGsFp9FpyW+PjgGlz\ntcu7pCl8mWNny4di9fkmQVanXad9ce3J2Su4ds/ApOY+u7YoylCNMSCE3eabiTOh\nTTpx651APkYiAaZFroVlsEjsC8bX8AIaof+dro+fhs1jq5uxWJkRR04HcWsJ1XtB\naMgwbWHomUpTrzT2//lk8e38r+USfU7pC+QA90Bq64fhP93VeuxMXKSP6dgW3yh4\n1EYfKOFKL8TXogotfM4chgOxAGeKy8vf+ioSY2GCsTwoaLqlphu7iaBpZQ7pjhU1\n2j0gRkjtcttIovdC9KPSiO4hETAr8K2HOoh/QBE2bqxOT21VFAsfd4BzvGDxvWAS\naeahm0K9CrpsXGxqRPyTFEae3JkEESn8JgUqRpwKP/TBCFmCErI0jT5woo1qW3d2\nIKKjnpVmTjSbBsCDc8wwugb3M9t+ldfrrwkpb0OzKSNQNX7mJ6l5gBozVKw0UGzI\nlvEES1KdZWLAZg/rxC+EleymkuHBodc0fA7/CAezqinV2jdnx0tLgGT6l5vnycFC\nerEiwp0SUN+uIGSGFFWTfpStZgIU9ninff2k3eO+yuSYT2+KWODaXf6pt6xP2xbu\nQhv7nID+xlWwGkRv8Jsd4RXo12K8rV86YhJM41gzFzLAQBK0VaLpTDZW8zXtfqPR\nxG9zXfaA5nJdpWrGvp83dZ8+NXWnl5Ubzu94jSckxKCj0bwe2Til6Rb3HykLMLNo\nZ7g=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'beta-root-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'BETA Root CA 1',
            name => 'beta-root-1',
            db => {
                authority_key_identifier => '5F:AA:16:6B:01:FC:E0:C1:D1:A7:42:FE:35:20:40:E2:2F:0B:45:07',
                cert_key => '22',
                data => "-----BEGIN CERTIFICATE-----\nMIIDjTCCAnWgAwIBAgIBFjANBgkqhkiG9w0BAQsFADBXMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZP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VUdXwWzQo2gQtsteDqEti87XXNA\nue+uu8NfgxS6Cuzid4ZWxyovS9vcqsAcgzANy1mjXni2G10V6jgYgk7CVwrw1PP2\nPA==\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'xCvDfhOr-JiMb53tNR8BIQPR4q0',
                invalidity_time => undef,
                issuer_dn => 'CN=BETA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'xCvDfhOr-JiMb53tNR8BIQPR4q0',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'beta',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=BETA Root CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '5F:AA:16:6B:01:FC:E0:C1:D1:A7:42:FE:35:20:40:E2:2F:0B:45:07',
            },
            db_alias => {
                alias => 'root-1',
                generation => '1',
                group_id => 'root',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIA226wb5KVqoCAggA\nMBQGCCqGSIb3DQMHBAiK1ELLlZKCTASCBMgY1eiZGNKJIX0628Mn0UvbpfjPDOIE\nepJ1/MSu2dL/ylALdOibEP+kVFhYWwOhgnukYPtu7O3on4BAyCH/mSgvMZBjaYLA\n6k8e7xzJd678YsGMuMOZGsUOfQFwFHD/UVF8cWu6WpAZ+zyY7M4VU+sBji1tkBHR\n0ErfViUuha/Qx3VntQmmFD8vZVTJcFAQp7NVrDpsAd9mowI1n1+wPHlimu+3/dIy\nrr1hEhnEqkvw+jUdTCsCKB2Y23l003P8CAX3pmGPN6+G+U3kWQBCtsHxrP9J+ipY\ncRvg8Jkmu9CLlydW/BrGQ9rFLFD8PR8A6i+nVpQSg/NrDoO19GgeVdwbDuq4L+KL\nBRTPybne5FF2vT3IceDQ0NL6++LmOLar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E8BYI\nD9qoJd4CXqOKyAVuWvI9qmlEFsCBVdKFLJEo/RNSXCpFw8GlUvbto8XDYjglOcza\nT0xi+FQ0bhXzJyUIm+TqdL0ozgEPOvhf5lOBnKlnoP3hPOhPq2r7mHHwY9BZbiG2\nMhgHf1ZccGY+Xmnkm0uvbtWA2nwodVAUGJ9qgr/kBkJWV/F6eKf74uwGpEkR5NBk\noI8=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'gamma-bob-1' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'GAMMA Client Bob 1',
            name => 'gamma-bob-1',
            db => {
                authority_key_identifier => '24:D4:62:7B:4A:75:C5:B5:34:7F:95:C2:8C:F3:1F:F5:E2:65:CD:9E',
                cert_key => '32',
                data => "-----BEGIN CERTIFICATE-----\nMIIDgjCCAmqgAwIBAgIBIDANBgkqhkiG9w0BAQsFADBbMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGzAZBgNVBAMMEkdBTU1BIFNpZ25pbmcgQ0EgMTAiGA8yMDE3MDEwMTAwMDAwMFoY\nDzIxMDUwMTMxMjM1OTU5WjBbMRMwEQYKCZImiZPyLGQBGRYDT1JHMRgwFgYKCZIm\niZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUxGzAZBgNVBAMMEkdBTU1B\nIENsaWVudCBCb2IgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO1J\nvseWGl8O2eDWmHJenzBtDEwLyCP7QzarfqkwjO7lWwLqd2Lmsy+CZ5xbpgNKV11o\nEqT91ILVeAVcl/2b12wsnmEBb0fY/d5pA5aDWy7Wdf60ZqQYJCNBPyDzVIiqKwI7\nhsUJSZ1JwSzOO0pJzslmjT2rPigmlbjSlmOal5ie+LXA0gkV9sIxzcDYMNpQNX1t\n5cf7wRRP83DWHg3xE+M/sbtJ1Ci6/dlcsUUJ0k/UDGHz98u0OpCEN7TespGJ1CIg\nyJHV3IdQXp02Cazak5AFgMUxdDk4G3uGF7suvEB/DAS5JUqsE4jATcwAvy/tkNyH\n3YlePNfh6gtnvlDm6SsCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQU/QOV\nG78N7QZiYA3Q1bFbuvmc7K0wHwYDVR0jBBgwFoAUJNRie0p1xbU0f5XCjPMf9eJl\nzZ4wDQYJKoZIhvcNAQELBQADggEBAIhCy0T9lUGR426BoNTAOkR5BIslGh4TqtBw\n6OgpK3MXliCsCJeW9tCo/tkObycb3EtpWx4qAkEHbWpsVBlevYBXJ2TKzs+khzo+\neZvXer83xSoHRtPEyCGfXp+pEDQ7ZUGRe/cffXIiuQLDNhDqhmRC5wxcR2LtVIwj\nstxE9cOJIb0WJIm5IpimqN2/DFGi6UYs5ygt3TOjhAep5UCeQ4XxbthgeKRj4Dac\na+LZaaYPaVzA3iY2DbzHTeiH3Nq64A4v9tZ+kZHyZ/2cLrC2kAHsIaKxv6B7YwLS\nDPzamtkRvCEYOJOPlbgKjoXL3Fu0de0FRt7F0TCV1ChGQE8wwyU=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'q8bTzEtcMM4JlYh2c77tGYkaLcw',
                invalidity_time => undef,
                issuer_dn => 'CN=GAMMA Signing CA 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => '',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'gamma',
                reason_code => undef,
                req_key => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=GAMMA Client Bob 1,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'FD:03:95:1B:BF:0D:ED:06:62:60:0D:D0:D5:B1:5B:BA:F9:9C:EC:AD',
            },
            db_alias => {
                alias => 'gamma-bob-1',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PR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QhK3KigluEcgzSIEcbA10IqmQzX8p7ZoZI0Dhl2jKMQN2jEdp3PG151Q8M\np9lXCBL2pmE65WSdfWiA4gsYO44P5xlMWmfBpWMHll1vRV1cfgJA4/hkQud8Krw8\nywjcJurMcVEeRXmmM6GEfvSU1mqoTid5jYMuL9EvCRHltQ6skB+UusWPiEl+ODfv\nlz7+9Ltj79PpXkQEkeaWf5YBtrUa7YjYjcTpaqoS1okP06ZYayucTy+EdSivhj1R\nlZTsC4klCjHeHfaPOQYjwqOGs25HkQpzz/TofdBnDqpGXj3htQUAqm8GlW/EEhpp\nkQ1uWpk8SNMoB9K+MVER0SQZGipJKsVYvTGhUsu+bu/0XmBuIp1PIlVvNW4cXwJD\n2tEtJ9SsvaBFSW7WpcZrcumMQJByHXkHa/OsWLur3YI0/MCUjcqi5AHZtA1+2FB5\n5MkqxlZENLVKACvahGs+Q9b4Pm/T1RPhOBFaT+bgNlkApaaCAgnAN4FABr0FXHVO\niZtOfMZlvZdDNm5IHTB9ntZLtfP0vrvZ0EID7pyexUURtctjDzx1EsWmzqImCVsE\n8GScvqaKxtXJxjSh2vkqRuH4QLWi3VCBN0ZdiGfy1ADj9W2iFA+ZxA7fNkF56kei\n/vkPKvokczfjChklgPXvhX9iKJf+bidmhvWjgoapLAuSn5U+rWGocYnQgiOkyo+z\nuz4=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'democa-root-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'DEMOCA Root CA 2',
            name => 'democa-root-2',
            db => {
                authority_key_identifier => '13:85:FA:79:D7:82:DA:27:C5:A9:CD:FF:6D:5E:F1:8B:EA:11:B5:97',
                cert_key => '2',
                data => "-----BEGIN CERTIFICATE-----\nMIIDkTCCAnmgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBZMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGTAXBgNVBAM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KVn65VA7QRmzdvhNfRBbt/EUrZJsS9\nQia7Jjw=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'e_ounQEZ8bB4xdHvPlZb71uzy44',
                invalidity_time => undef,
                issuer_dn => 'CN=DEMOCA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'e_ounQEZ8bB4xdHvPlZb71uzy44',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'democa',
                reason_code => undef,
                req_key => undef,
                revocation_id => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=DEMOCA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => '13:85:FA:79:D7:82:DA:27:C5:A9:CD:FF:6D:5E:F1:8B:EA:11:B5:97',
            },
            db_alias => {
                alias => 'root-2',
                generation => '2',
                group_id => 'root',
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIgGSXaRWQryACAggA\nMBQGCCqGSIb3DQMHBAjBXofDm/biBwSCBMhSCuUI3Dk43qSbN480JXfSKeF7bqB+\nX7KAvvEbnRMCJ93VVahEmzdeNW8IADqbUS6ns7RkwOnBhK1kEV0CrUVRPm0/sDpE\niu9NE4bUupLy118+Sa5qUWpFyO7Ex8ZtNNHnf7UKXnFDyIPkPH7Ddo2hSXSCwtMQ\n/e7Lvz6H88NJM8LVrZz+gY8JEygd5muSmcwh83bh707DIzzFwvlYd3jUAFFvt6d0\nUFulhVKqsGdQkSFqxUm1iwInOWc5uUK0Le4AuKlI6fCE+lvbwiMSjtP7okSsN5Vo\nUxcAEA/Ihhad9HIUbo1B6tDOEZfnfLQ4lk/7TClznEtKVyNrG8YgxqOwZQSUiYqh\nO7SES8BRmJXEtJhpX2zgBZyi5nQjfJ6PZolBi90OZ9HUyUvuGIjN0oWXQEnmcyUx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LwV6F7ktXy00wq+7/maxExIXwCiNVnK84z2F/hi4u96+DK//XwmuiM\nCctbqX+zqOHeAVG6g7Zo+r4IEMOlMkvlwj17Z5KAiXrMIMFVloQ9qXI93ueVN6lM\nscXgWcqNiyoBwaOuRyo0TfFYSdvEPEEG+qYHjNK5RUYWgJLnv4plWHu97mkMFoN+\n9vg=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'democa-signer-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'DEMOCA Signing CA 2',
            name => 'democa-signer-2',
            db => {
                authority_key_identifier => '13:85:FA:79:D7:82:DA:27:C5:A9:CD:FF:6D:5E:F1:8B:EA:11:B5:97',
                cert_key => '3',
                data => "-----BEGIN CERTIFICATE-----\nMIIDlDCCAnygAwIBAgIBAzANBgkqhkiG9w0BAQsFADBZMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nGTAXBgNVBAMMEERFTU9DQSBSb290IENBIDIwIhgPMjAxNzAxMDEwMDAwMDBaGA8y\nMTA1MDEzMTIzNTk1OVowXDETMBEGCgmSJomT8ixkARkWA09SRzEYMBYGCgmSJomT\n8ixkARkWCE9wZW5YUEtJMQ0wCwYDVQQLDARBQ01FMRwwGgYDVQQDDBNERU1PQ0Eg\nU2lnbmluZyBDQSAyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyJ0r\ncllT04JmgMQDrgb/PSiisU55b0OC9ibZ6yx0e8wV2m//wkKfMZRxTA3182hvGBvH\nlIGSG1SVq2oXqiX+b0WeXR13CZ47wQ8IQ9nkdf43EYpY6WkLn/WIQ6UQ/0OOQJCs\nsvs033741Zvqxgxx56XnXK4eWfpClnJ2OA+Gx0smzHYc8bGhr65X/DFI2LMCMPWV\nZSBbIBX9FftgndcT+efmvfb6vjxkzehyi5lpON0dlEU6YT4bmxPruGbcAAktyb36\nsRMD09m0QnYPWi3HpzsECp87PommB5SsisqiMTyWy/7VeX1jY+WLmrEg5rBe+mTq\nht1xmxpqVWSOl9hNjQIDAQABo2AwXjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW\nBBTzeJ0fgZBS3ESd0CjhlmY+Qwn/lzAfBgNVHSMEGDAWgBQThfp514LaJ8Wpzf9t\nXvGL6hG1lzALBgNVHQ8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAAIX4hnlaoI2\ntToreUE5Bp7RUbARrdUPyeH1Xc6hm88YuFi4rSlM3T2c/CEl+8frCJmsVSjeBXlH\nnagWnEu7VuIt5ka7RmornWyV2weXnpQRZ2np5nbo6iihXnysRSeZeCUXspPvgQ5i\nZ/CGk1/uakS3BYiwl00xpUXv3Oaz33o4U/AnXihKw+4Huo0dfe49JZpqqXeoSWFo\nfbhQfYkaDv+RXb0yQvheLHCOPVX/i9Ss/geBz/bxO2TwJ+VRC9kSltB8RkZ8Cz9V\nYm7Vvgy89+0DVYl1oegd9QV4Bo/77xdQUNt53bV2OxjHG2RsrzVQ8wB6Mmzb1ZUC\nq5u05W09qSc=\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => 'w8pxr7af7trT39_Xq7PA-yXQdG0',
                invalidity_time => undef,
                issuer_dn => 'CN=DEMOCA Root CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'e_ounQEZ8bB4xdHvPlZb71uzy44',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'democa',
                reason_code => undef,
                req_key => undef,
                revocation_id => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=DEMOCA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'F3:78:9D:1F:81:90:52:DC:44:9D:D0:28:E1:96:66:3E:43:09:FF:97',
            },
            db_alias => {
                alias => 'democa-signer-2',
                generation => '2',
                group_id => 'democa-signer',
            },
            private_key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ENPWpTS\nropVtUU7VrP6JAsXwODW1Dx3XuW9O4N0MhQfhqV+9venTHfZmBYTvc6tjBd2rTRA\nribNmaicV24f3wRJtUz5n8BlfEU3KkdspDT4+oNISVIU4xS5ICL9junFxuJNde5H\nNk92Fy0TK0uaQXmHViF8yMjYtu9n9zJp/WfES2MsAkOHMmw9EOnXbbPfUcUsYVvh\nKX9K/xK9hB3Z1GqZAWm1kGVwztAqaAgegQO2ExySeqlctYrVkK4ixkpPNM15bREk\notyLRYIVHM/YMUY4GfDWGZUgplR62fuWSAxPq5LQ0PW/TJ472gtwRb0G46laDjE7\n79tW9hHhV32Fi5yGRtROCa4gXg2kBL1/XX4jF30xbaijnnP8GkdcRJSD49nBJhvn\nTpTCQUftOL8RliMO0wsM5MA2hOh/lGhd9DIeydt5cxEHJg8CYTi4iMnwdOf33nO5\nmWjcWAaOEb/yYIcUvnJwd6R/MFfaZKpsCmiK7nKTMsGTVUED+EmI1BSiNgFvscl5\ncH4zyh1IuRvmT6jD9eFkFiuT2GigOQHt9RyAYqvdVR75mbASxvChleb8deiDYN7y\ntKvrjUc3bYY5Eut9AeomoP4mp0akc0xDEMQZM3lX+u1ZY1rWq6Z12qdOV/SC+FZ4\nx3a9MGOA6I+ik/wdUb0LF+8v45Gbm5mbugxf+NCqTqx21k8lsobAOQ71xdfL7QvU\nOIo=\n-----END ENCRYPTED PRIVATE KEY-----",
        ),

        'democa-alice-2' => OpenXPKI::Test::CertHelper::Database::Cert->new(
            label => 'DEMOCA Client Alice 2',
            name => 'democa-alice-2',
            db => {
                authority_key_identifier => 'F3:78:9D:1F:81:90:52:DC:44:9D:D0:28:E1:96:66:3E:43:09:FF:97',
                cert_key => '5',
                data => "-----BEGIN CERTIFICATE-----\nMIIDhjCCAm6gAwIBAgIBBTANBgkqhkiG9w0BAQsFADBcMRMwEQYKCZImiZPyLGQB\nGRYDT1JHMRgwFgYKCZImiZPyLGQBGRYIT3BlblhQS0kxDTALBgNVBAsMBEFDTUUx\nHDAa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suw514RAziZto8VIBagDoTPXAE36psj\n-----END CERTIFICATE-----",
                hold_instruction_code => undef,
                identifier => '-6m85_RjRFtnHbr2qzNCo44Lbb0',
                invalidity_time => undef,
                issuer_dn => 'CN=DEMOCA Signing CA 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                issuer_identifier => 'w8pxr7af7trT39_Xq7PA-yXQdG0',
                notafter => '4262889599', # 2105-01-31T23:59:59
                notbefore => '1483228800', # 2017-01-01T00:00:00
                pki_realm => 'democa',
                reason_code => undef,
                req_key => undef,
                revocation_id => undef,
                revocation_time => undef,
                status => 'ISSUED',
                subject => 'CN=DEMOCA Client Alice 2,OU=ACME,DC=OpenXPKI,DC=ORG',
                subject_key_identifier => 'FA:32:96:29:B5:A0:4A:34:F6:B9:CF:EF:7A:57:2A:9F:9F:D8:5D:A3',
            },
            db_alias => {
                alias => 'democa-alice-2',
                generation => undef,
                group_id => undef,
            },
            private_key => "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIxerSoYaQ/FkCAggA\nMBQGCCqGSIb3DQMHBAhT1oqVHdr+AASCBMihI5B7qJx3vAiNlzs+Xvt0tT6d3w5Y\noYvGiM0FBNM+G0DhKzSA6vftZGuLppWsqsPVmAHK5HCCJqWiXPm68TScRr8koeRK\nFSq6RRoJpROC13n5GW1Z4NTmnwz4NnrAXPWVPwmvTk7Nwawuf03ZQLRj43sszPT3\nF/i0v9BRKigHnFZyOGJsxoQa+fME9Hzn0j/MwojiA4ZhSGpClhpFgQtXLucxoV/Z\nNK8oBDdWhMfl2B3AnaMdOClOIggbTj1uYYnFs5DkUAGq33kf/XnKziz3lpX3Y1AB\neQbyBkCNxE/0UlMdlMvh6gJX2Lyr68L7GC3BfoPHzNeiU6Va19Z4F7qmiIgPFiLj\nIeYMYsqR3jhMs2uKoCkoFVWCI0rX5svwc2vhEGke5HU2dLFBaNYH7NQWzDoZoVEz\nFq6B2F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