blob: caa525d7d668d10b38151d44d0d23527566659fb [file] [log] [blame]
Paul Bakker37940d9f2009-07-10 22:38:58 +00001X509 Certificate information #1
Paul Bakker335db3f2011-04-25 15:28:35 +00002depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +02003x509_cert_info:"data_files/server1.crt":"cert. version \: 3\nserial number \: 01\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Server 1\nissued on \: 2011-02-12 14\:44\:06\nexpires on \: 2021-02-12 14\:44\:06\nsigned using \: RSA with SHA1\nRSA key size \: 2048 bits\n"
Paul Bakker37940d9f2009-07-10 22:38:58 +00004
5X509 Certificate information #2
Paul Bakker335db3f2011-04-25 15:28:35 +00006depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +02007x509_cert_info:"data_files/server2.crt":"cert. version \: 3\nserial number \: 02\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=localhost\nissued on \: 2011-02-12 14\:44\:06\nexpires on \: 2021-02-12 14\:44\:06\nsigned using \: RSA with SHA1\nRSA key size \: 2048 bits\n"
Paul Bakker37940d9f2009-07-10 22:38:58 +00008
Paul Bakkerc26a1892009-07-19 20:30:14 +00009X509 Certificate information #3
Paul Bakker335db3f2011-04-25 15:28:35 +000010depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020011x509_cert_info:"data_files/test-ca.crt":"cert. version \: 3\nserial number \: 00\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nissued on \: 2011-02-12 14\:44\:00\nexpires on \: 2021-02-12 14\:44\:00\nsigned using \: RSA with SHA1\nRSA key size \: 2048 bits\n"
Paul Bakker37940d9f2009-07-10 22:38:58 +000012
Paul Bakkerc26a1892009-07-19 20:30:14 +000013X509 Certificate information MD2 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000014depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020015x509_cert_info:"data_files/cert_md2.crt":"cert. version \: 3\nserial number \: 09\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert MD2\nissued on \: 2009-07-12 10\:56\:59\nexpires on \: 2011-07-12 10\:56\:59\nsigned using \: RSA with MD2\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000016
17X509 Certificate information MD4 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000018depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020019x509_cert_info:"data_files/cert_md4.crt":"cert. version \: 3\nserial number \: 05\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert MD4\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with MD4\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000020
21X509 Certificate information MD5 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000022depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020023x509_cert_info:"data_files/cert_md5.crt":"cert. version \: 3\nserial number \: 06\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert MD5\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with MD5\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000024
25X509 Certificate information SHA1 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000026depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020027x509_cert_info:"data_files/cert_sha1.crt":"cert. version \: 3\nserial number \: 07\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert SHA1\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with SHA1\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000028
29X509 Certificate information SHA224 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000030depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020031x509_cert_info:"data_files/cert_sha224.crt":"cert. version \: 3\nserial number \: 08\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert SHA224\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with SHA-224\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000032
33X509 Certificate information SHA256 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000034depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020035x509_cert_info:"data_files/cert_sha256.crt":"cert. version \: 3\nserial number \: 09\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert SHA256\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with SHA-256\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000036
37X509 Certificate information SHA384 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000038depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020039x509_cert_info:"data_files/cert_sha384.crt":"cert. version \: 3\nserial number \: 0A\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert SHA384\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with SHA-384\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000040
41X509 Certificate information SHA512 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000042depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020043x509_cert_info:"data_files/cert_sha512.crt":"cert. version \: 3\nserial number \: 0B\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nsubject name \: C=NL, O=PolarSSL, CN=PolarSSL Cert SHA512\nissued on \: 2011-02-12 14\:44\:07\nexpires on \: 2021-02-12 14\:44\:07\nsigned using \: RSA with SHA-512\nRSA key size \: 2048 bits\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000044
Paul Bakker37940d9f2009-07-10 22:38:58 +000045X509 CRL information #1
Paul Bakker335db3f2011-04-25 15:28:35 +000046depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020047x509_crl_info:"data_files/crl_expired.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-20 10\:24\:19\nnext update \: 2011-02-20 11\:24\:19\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA1\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000048
49X509 CRL Information MD2 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000050depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020051x509_crl_info:"data_files/crl_md2.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2009-07-19 19\:56\:37\nnext update \: 2009-09-17 19\:56\:37\nRevoked certificates\:\nserial number\: 01 revocation date\: 2009-02-09 21\:12\:36\nserial number\: 03 revocation date\: 2009-02-09 21\:12\:36\nsigned using \: RSA with MD2\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000052
53X509 CRL Information MD4 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000054depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020055x509_crl_info:"data_files/crl_md4.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with MD4\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000056
57X509 CRL Information MD5 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000058depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020059x509_crl_info:"data_files/crl_md5.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with MD5\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000060
61X509 CRL Information SHA1 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000062depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020063x509_crl_info:"data_files/crl_sha1.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA1\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000064
65X509 CRL Information SHA224 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000066depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020067x509_crl_info:"data_files/crl_sha224.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA-224\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000068
69X509 CRL Information SHA256 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000070depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020071x509_crl_info:"data_files/crl_sha256.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA-256\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000072
73X509 CRL Information SHA384 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000074depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020075x509_crl_info:"data_files/crl_sha384.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA-384\n"
Paul Bakkerc26a1892009-07-19 20:30:14 +000076
77X509 CRL Information SHA512 Digest
Paul Bakker335db3f2011-04-25 15:28:35 +000078depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerc70b9822013-04-07 22:00:46 +020079x509_crl_info:"data_files/crl_sha512.pem":"CRL version \: 1\nissuer name \: C=NL, O=PolarSSL, CN=PolarSSL Test CA\nthis update \: 2011-02-12 14\:44\:07\nnext update \: 2011-04-13 14\:44\:07\nRevoked certificates\:\nserial number\: 01 revocation date\: 2011-02-12 14\:44\:07\nserial number\: 03 revocation date\: 2011-02-12 14\:44\:07\nsigned using \: RSA with SHA-512\n"
Paul Bakker37940d9f2009-07-10 22:38:58 +000080
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020081X509 Parse RSA Key #1 (No password when required)
Paul Bakker335db3f2011-04-25 15:28:35 +000082depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020083x509parse_keyfile_rsa:"data_files/test-ca.key":NULL:POLARSSL_ERR_X509_PASSWORD_REQUIRED
Paul Bakker37940d9f2009-07-10 22:38:58 +000084
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020085X509 Parse RSA Key #2 (Correct password)
Paul Bakker335db3f2011-04-25 15:28:35 +000086depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020087x509parse_keyfile_rsa:"data_files/test-ca.key":"PolarSSLTest":0
Paul Bakker37940d9f2009-07-10 22:38:58 +000088
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020089X509 Parse RSA Key #3 (Wrong password)
Paul Bakker335db3f2011-04-25 15:28:35 +000090depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020091x509parse_keyfile_rsa:"data_files/test-ca.key":"PolarSSLWRONG":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker96743fc2011-02-12 14:30:57 +000092
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020093X509 Parse RSA Key #4 (DES Encrypted)
Paul Bakker335db3f2011-04-25 15:28:35 +000094depends_on:POLARSSL_MD5_C:POLARSSL_DES_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020095x509parse_keyfile_rsa:"data_files/keyfile.des":"testkey":0
Paul Bakker96743fc2011-02-12 14:30:57 +000096
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020097X509 Parse RSA Key #5 (3DES Encrypted)
Paul Bakker335db3f2011-04-25 15:28:35 +000098depends_on:POLARSSL_MD5_C:POLARSSL_DES_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +020099x509parse_keyfile_rsa:"data_files/keyfile.3des":"testkey":0
Paul Bakker96743fc2011-02-12 14:30:57 +0000100
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200101X509 Parse RSA Key #6 (AES-128 Encrypted)
Paul Bakker335db3f2011-04-25 15:28:35 +0000102depends_on:POLARSSL_MD5_C:POLARSSL_AES_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200103x509parse_keyfile_rsa:"data_files/keyfile.aes128":"testkey":0
Paul Bakker96743fc2011-02-12 14:30:57 +0000104
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200105X509 Parse RSA Key #7 (AES-192 Encrypted)
Paul Bakker335db3f2011-04-25 15:28:35 +0000106depends_on:POLARSSL_MD5_C:POLARSSL_AES_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200107x509parse_keyfile_rsa:"data_files/keyfile.aes192":"testkey":0
Paul Bakker96743fc2011-02-12 14:30:57 +0000108
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200109X509 Parse RSA Key #8 (AES-256 Encrypted)
Paul Bakker335db3f2011-04-25 15:28:35 +0000110depends_on:POLARSSL_MD5_C:POLARSSL_AES_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200111x509parse_keyfile_rsa:"data_files/keyfile.aes256":"testkey":0
Paul Bakker37940d9f2009-07-10 22:38:58 +0000112
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200113X509 Parse RSA Key #9 (PKCS#8 wrapped)
Paul Bakker36f1b192011-07-13 11:32:29 +0000114depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200115x509parse_keyfile_rsa:"data_files/format_gen.key":"":0
Paul Bakker36f1b192011-07-13 11:32:29 +0000116
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200117X509 Parse RSA Key #10 (PKCS#8 encrypted SHA1-3DES)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200118depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200119x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"PolarSSLTest":0
Paul Bakkerf1f21fe2013-06-24 19:17:19 +0200120
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200121X509 Parse RSA Key #10.1 (PKCS#8 encrypted SHA1-3DES, wrong PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200122depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200123x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"PolarSSLTes":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker38b50d72013-06-24 19:33:27 +0200124
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200125X509 Parse RSA Key #10.2 (PKCS#8 encrypted SHA1-3DES, no PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200126depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200127x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.key":"":POLARSSL_ERR_X509_PASSWORD_REQUIRED
Paul Bakker38b50d72013-06-24 19:33:27 +0200128
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200129X509 Parse RSA Key #11 (PKCS#8 encrypted SHA1-3DES DER)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200130depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200131x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_3des.der":"PolarSSLTest":0
Paul Bakkerf1f21fe2013-06-24 19:17:19 +0200132
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200133X509 Parse RSA Key #12 (PKCS#8 encrypted SHA1-2DES)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200134depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200135x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"PolarSSLTest":0
Paul Bakkerf1f21fe2013-06-24 19:17:19 +0200136
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200137X509 Parse RSA Key #12.1 (PKCS#8 encrypted SHA1-2DES, wrong PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200138depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200139x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"PolarSLTest":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker38b50d72013-06-24 19:33:27 +0200140
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200141X509 Parse RSA Key #12.2 (PKCS#8 encrypted SHA1-2DES, no PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200142depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200143x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_2des.key":"":POLARSSL_ERR_X509_PASSWORD_REQUIRED
Paul Bakker38b50d72013-06-24 19:33:27 +0200144
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200145X509 Parse RSA Key #13 (PKCS#8 encrypted SHA1-RC4-128)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200146depends_on:POLARSSL_ARC4_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200147x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"PolarSSLTest":0
Paul Bakkerf1f21fe2013-06-24 19:17:19 +0200148
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200149X509 Parse RSA Key #13.1 (PKCS#8 encrypted SHA1-RC4-128, wrong PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200150depends_on:POLARSSL_ARC4_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200151x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"PolarSSLTe":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker38b50d72013-06-24 19:33:27 +0200152
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200153X509 Parse RSA Key #13.2 (PKCS#8 encrypted SHA1-RC4-128, no PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200154depends_on:POLARSSL_ARC4_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS12_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200155x509parse_keyfile_rsa:"data_files/pkcs8_pbe_sha1_rc4_128.key":"":POLARSSL_ERR_X509_PASSWORD_REQUIRED
Paul Bakker38b50d72013-06-24 19:33:27 +0200156
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200157X509 Parse RSA Key #14 (PKCS#8 encrypted v2 PBDFK2 3DES)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200158depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200159x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"PolarSSLTest":0
Paul Bakker28144de2013-06-24 19:28:55 +0200160
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200161X509 Parse RSA Key #15 (PKCS#8 encrypted v2 PBDFK2 3DES, wrong PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200162depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200163x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"PolarSSLTes":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker28144de2013-06-24 19:28:55 +0200164
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200165X509 Parse RSA Key #16 (PKCS#8 encrypted v2 PBDFK2 3DES, no PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200166depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200167x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.key":"":POLARSSL_ERR_X509_PASSWORD_REQUIRED
Paul Bakker28144de2013-06-24 19:28:55 +0200168
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200169X509 Parse RSA Key #17 (PKCS#8 encrypted v2 PBDFK2 3DES DER)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200170depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200171x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"PolarSSLTest":0
Paul Bakker28144de2013-06-24 19:28:55 +0200172
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200173X509 Parse RSA Key #18 (PKCS#8 encrypted v2 PBDFK2 3DES DER, wrong PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200174depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200175x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"PolarSSLTes":POLARSSL_ERR_X509_PASSWORD_MISMATCH
Paul Bakker28144de2013-06-24 19:28:55 +0200176
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200177X509 Parse RSA Key #19 (PKCS#8 encrypted v2 PBDFK2 3DES DER, no PW)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200178depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200179x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_3des.der":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker28144de2013-06-24 19:28:55 +0200180
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200181X509 Parse RSA Key #20 (PKCS#8 encrypted v2 PBDFK2 DES)
Paul Bakkerf67edd92013-06-24 19:33:44 +0200182depends_on:POLARSSL_DES_C:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_PKCS5_C
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200183x509parse_keyfile_rsa:"data_files/pkcs8_pbes2_pbkdf2_des.key":"PolarSSLTest":0
Paul Bakker28144de2013-06-24 19:28:55 +0200184
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200185X509 Parse Public RSA Key #1 (PKCS#8 wrapped)
Paul Bakker36f1b192011-07-13 11:32:29 +0000186depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200187x509parse_public_keyfile_rsa:"data_files/format_gen.pub":0
Paul Bakker36f1b192011-07-13 11:32:29 +0000188
Manuel Pégourié-Gonnard1bc69312013-06-27 15:33:04 +0200189X509 Parse Public EC Key #1 (RFC 5480, DER)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200190depends_on:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED:POLARSSL_FS_IO
Manuel Pégourié-Gonnard1bc69312013-06-27 15:33:04 +0200191x509parse_public_keyfile_ec:"data_files/ec_pub.der":0
192
193X509 Parse Public EC Key #2 (RFC 5480, PEM)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200194depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED:POLARSSL_FS_IO
Manuel Pégourié-Gonnard1bc69312013-06-27 15:33:04 +0200195x509parse_public_keyfile_ec:"data_files/ec_pub.pem":0
196
Manuel Pégourié-Gonnardb03de8b2013-08-15 14:39:16 +0200197X509 Parse Public EC Key #3 (RFC 5480, secp224r1)
198depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP224R1_ENABLED:POLARSSL_FS_IO
199x509parse_public_keyfile_ec:"data_files/ec_224_pub.pem":0
200
201X509 Parse Public EC Key #4 (RFC 5480, secp256r1)
202depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256R1_ENABLED:POLARSSL_FS_IO
203x509parse_public_keyfile_ec:"data_files/ec_256_pub.pem":0
204
205X509 Parse Public EC Key #5 (RFC 5480, secp384r1)
206depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP384R1_ENABLED:POLARSSL_FS_IO
207x509parse_public_keyfile_ec:"data_files/ec_384_pub.pem":0
208
209X509 Parse Public EC Key #6 (RFC 5480, secp521r1)
210depends_on:POLARSSL_PEM_C:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP521R1_ENABLED:POLARSSL_FS_IO
211x509parse_public_keyfile_ec:"data_files/ec_521_pub.pem":0
212
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200213X509 Parse EC Key #1 (SEC1 DER)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200214depends_on:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200215x509parse_keyfile_ec:"data_files/ec_prv.sec1.der":NULL:0
216
217X509 Parse EC Key #2 (SEC1 PEM)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200218depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200219x509parse_keyfile_ec:"data_files/ec_prv.sec1.pem":NULL:0
220
221X509 Parse EC Key #3 (SEC1 PEM encrypted)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200222depends_on:POLARSSL_DES_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200223x509parse_keyfile_ec:"data_files/ec_prv.sec1.pw.pem":"polar":0
224
225X509 Parse EC Key #4 (PKCS8 DER)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200226depends_on:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200227x509parse_keyfile_ec:"data_files/ec_prv.pk8.der":NULL:0
228
229X509 Parse EC Key #5 (PKCS8 PEM)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200230depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200231x509parse_keyfile_ec:"data_files/ec_prv.pk8.pem":NULL:0
232
233X509 Parse EC Key #6 (PKCS8 encrypted DER)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200234depends_on:POLARSSL_DES_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200235x509parse_keyfile_ec:"data_files/ec_prv.pk8.pw.der":"polar":0
236
237X509 Parse EC Key #7 (PKCS8 encrypted PEM)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200238depends_on:POLARSSL_DES_C:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnard2b9252c2013-07-03 12:13:56 +0200239x509parse_keyfile_ec:"data_files/ec_prv.pk8.pw.pem":"polar":0
240
Manuel Pégourié-Gonnardb03de8b2013-08-15 14:39:16 +0200241X509 Parse EC Key #8 (SEC1 PEM, secp224r1)
242depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP224R1_ENABLED
243x509parse_keyfile_ec:"data_files/ec_224_prv.pem":NULL:0
244
245X509 Parse EC Key #9 (SEC1 PEM, secp256r1)
246depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP256R1_ENABLED
247x509parse_keyfile_ec:"data_files/ec_256_prv.pem":NULL:0
248
249X509 Parse EC Key #10 (SEC1 PEM, secp384r1)
250depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP384R1_ENABLED
251x509parse_keyfile_ec:"data_files/ec_384_prv.pem":NULL:0
252
253X509 Parse EC Key #11 (SEC1 PEM, secp521r1)
254depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP521R1_ENABLED
255x509parse_keyfile_ec:"data_files/ec_521_prv.pem":NULL:0
256
Paul Bakker37940d9f2009-07-10 22:38:58 +0000257X509 Get Distinguished Name #1
Paul Bakker335db3f2011-04-25 15:28:35 +0000258depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000259x509_dn_gets:"data_files/server1.crt":subject:"C=NL, O=PolarSSL, CN=PolarSSL Server 1"
260
261X509 Get Distinguished Name #2
Paul Bakker335db3f2011-04-25 15:28:35 +0000262depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000263x509_dn_gets:"data_files/server1.crt":issuer:"C=NL, O=PolarSSL, CN=PolarSSL Test CA"
264
265X509 Get Distinguished Name #3
Paul Bakker335db3f2011-04-25 15:28:35 +0000266depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000267x509_dn_gets:"data_files/server2.crt":subject:"C=NL, O=PolarSSL, CN=localhost"
268
269X509 Get Distinguished Name #4
Paul Bakker335db3f2011-04-25 15:28:35 +0000270depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000271x509_dn_gets:"data_files/server2.crt":issuer:"C=NL, O=PolarSSL, CN=PolarSSL Test CA"
272
273X509 Time Expired #1
Paul Bakker335db3f2011-04-25 15:28:35 +0000274depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000275x509_time_expired:"data_files/server1.crt":valid_from:1
276
277X509 Time Expired #2
Paul Bakker335db3f2011-04-25 15:28:35 +0000278depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000279x509_time_expired:"data_files/server1.crt":valid_to:0
280
281X509 Time Expired #3
Paul Bakker335db3f2011-04-25 15:28:35 +0000282depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000283x509_time_expired:"data_files/server2.crt":valid_from:1
284
285X509 Time Expired #4
Paul Bakker335db3f2011-04-25 15:28:35 +0000286depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000287x509_time_expired:"data_files/server2.crt":valid_to:0
288
289X509 Time Expired #5
Paul Bakker335db3f2011-04-25 15:28:35 +0000290depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000291x509_time_expired:"data_files/test-ca.crt":valid_from:1
292
Paul Bakker335db3f2011-04-25 15:28:35 +0000293X509 Time Expired #6:POLARSSL_FS_IO
294depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker37940d9f2009-07-10 22:38:58 +0000295x509_time_expired:"data_files/test-ca.crt":valid_to:0
296
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000297X509 Certificate verification #1 (Revoked Cert, Expired CRL)
Paul Bakker335db3f2011-04-25 15:28:35 +0000298depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000299x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl_expired.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED | BADCRL_EXPIRED:NULL
Paul Bakker37940d9f2009-07-10 22:38:58 +0000300
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000301X509 Certificate verification #2 (Revoked Cert, Expired CRL)
Paul Bakker335db3f2011-04-25 15:28:35 +0000302depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000303x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl_expired.pem":"PolarSSL Server 1":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED | BADCRL_EXPIRED:NULL
Paul Bakker37940d9f2009-07-10 22:38:58 +0000304
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000305X509 Certificate verification #3 (Revoked Cert, Expired CRL, CN Mismatch)
Paul Bakker335db3f2011-04-25 15:28:35 +0000306depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000307x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl_expired.pem":"PolarSSL Wrong CN":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED | BADCRL_EXPIRED | BADCERT_CN_MISMATCH:NULL
Paul Bakker37940d9f2009-07-10 22:38:58 +0000308
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000309X509 Certificate verification #4 (Valid Cert, Expired CRL)
Paul Bakker335db3f2011-04-25 15:28:35 +0000310depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000311x509_verify:"data_files/server2.crt":"data_files/test-ca.crt":"data_files/crl_expired.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCRL_EXPIRED:NULL
Paul Bakker37940d9f2009-07-10 22:38:58 +0000312
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000313X509 Certificate verification #5 (Revoked Cert)
Paul Bakker335db3f2011-04-25 15:28:35 +0000314depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000315x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000316
317X509 Certificate verification #6 (Revoked Cert)
Paul Bakker335db3f2011-04-25 15:28:35 +0000318depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000319x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl.pem":"PolarSSL Server 1":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000320
321X509 Certificate verification #7 (Revoked Cert, CN Mismatch)
Paul Bakker335db3f2011-04-25 15:28:35 +0000322depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000323x509_verify:"data_files/server1.crt":"data_files/test-ca.crt":"data_files/crl.pem":"PolarSSL Wrong CN":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_REVOKED | BADCERT_CN_MISMATCH:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000324
325X509 Certificate verification #8 (Valid Cert)
Paul Bakker335db3f2011-04-25 15:28:35 +0000326depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000327x509_verify:"data_files/server2.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000328
329X509 Certificate verification #9 (Not trusted Cert)
Paul Bakker335db3f2011-04-25 15:28:35 +0000330depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000331x509_verify:"data_files/server2.crt":"data_files/server1.crt":"data_files/crl.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_NOT_TRUSTED:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000332
333X509 Certificate verification #10 (Not trusted Cert, Expired CRL)
Paul Bakker335db3f2011-04-25 15:28:35 +0000334depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000335x509_verify:"data_files/server2.crt":"data_files/server1.crt":"data_files/crl_expired.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_NOT_TRUSTED:NULL
Paul Bakker37940d9f2009-07-10 22:38:58 +0000336
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000337X509 Certificate verification #12 (Valid Cert MD4 Digest)
Paul Bakker335db3f2011-04-25 15:28:35 +0000338depends_on:POLARSSL_MD4_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000339x509_verify:"data_files/cert_md4.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000340
341X509 Certificate verification #13 (Valid Cert MD5 Digest)
Paul Bakker335db3f2011-04-25 15:28:35 +0000342depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000343x509_verify:"data_files/cert_md5.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000344
345X509 Certificate verification #14 (Valid Cert SHA1 Digest)
Paul Bakker335db3f2011-04-25 15:28:35 +0000346depends_on:POLARSSL_SHA1_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000347x509_verify:"data_files/cert_sha1.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000348
349X509 Certificate verification #15 (Valid Cert SHA224 Digest)
Paul Bakker9e36f042013-06-30 14:34:05 +0200350depends_on:POLARSSL_SHA256_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000351x509_verify:"data_files/cert_sha224.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000352
353X509 Certificate verification #16 (Valid Cert SHA256 Digest)
Paul Bakker9e36f042013-06-30 14:34:05 +0200354depends_on:POLARSSL_SHA256_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000355x509_verify:"data_files/cert_sha256.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000356
357X509 Certificate verification #17 (Valid Cert SHA384 Digest)
Paul Bakker9e36f042013-06-30 14:34:05 +0200358depends_on:POLARSSL_SHA512_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000359x509_verify:"data_files/cert_sha384.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000360
361X509 Certificate verification #18 (Valid Cert SHA512 Digest)
Paul Bakker9e36f042013-06-30 14:34:05 +0200362depends_on:POLARSSL_SHA512_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000363x509_verify:"data_files/cert_sha512.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:0:0:NULL
364
365X509 Certificate verification #19 (Valid Cert, denying callback)
Paul Bakker9e36f042013-06-30 14:34:05 +0200366depends_on:POLARSSL_SHA512_C:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker915275b2012-09-28 07:10:55 +0000367x509_verify:"data_files/cert_sha512.crt":"data_files/test-ca.crt":"data_files/crl.pem":NULL:POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_OTHER:verify_none
Paul Bakkerb63b0af2011-01-13 17:54:59 +0000368
369X509 Certificate verification #20 (Not trusted Cert, allowing callback)
Paul Bakker335db3f2011-04-25 15:28:35 +0000370depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker915275b2012-09-28 07:10:55 +0000371x509_verify:"data_files/server2.crt":"data_files/server1.crt":"data_files/crl_expired.pem":NULL:0:0:verify_all
Paul Bakker4d6b31a2009-07-12 11:11:06 +0000372
Paul Bakkera8cd2392012-02-11 16:09:32 +0000373X509 Certificate verification #21 (domain matching wildcard certificate)
374depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
375x509_verify:"data_files/cert_example_wildcard.crt":"data_files/test-ca.crt":"data_files/crl.pem":"mail.example.com":0:0:NULL
376
377X509 Certificate verification #22 (domain not matching wildcard certificate)
378depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
379x509_verify:"data_files/cert_example_wildcard.crt":"data_files/test-ca.crt":"data_files/crl.pem":"mail.example.net":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
380
381X509 Certificate verification #23 (domain not matching wildcard certificate)
382depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
383x509_verify:"data_files/cert_example_wildcard.crt":"data_files/test-ca.crt":"data_files/crl.pem":"example.com":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
384
Paul Bakker4d2c1242012-05-10 14:12:46 +0000385X509 Certificate verification #24 (domain matching CN of multi certificate)
Paul Bakkera8cd2392012-02-11 16:09:32 +0000386depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
Paul Bakker4d2c1242012-05-10 14:12:46 +0000387x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"www.example.com":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
Paul Bakkera8cd2392012-02-11 16:09:32 +0000388
389X509 Certificate verification #25 (domain matching multi certificate)
390depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
391x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"example.net":0:0:NULL
392
393X509 Certificate verification #26 (domain not matching multi certificate)
394depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
395x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"www.example.net":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
396
397X509 Certificate verification #27 (domain not matching multi certificate)
398depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
399x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"xample.net":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
400
401X509 Certificate verification #27 (domain not matching multi certificate)
402depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
403x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"bexample.net":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
404
Paul Bakker57b12982012-02-11 17:38:38 +0000405X509 Certificate verification #28 (domain not matching wildcard in multi certificate)
406depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
407x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"example.org":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH:NULL
408
409X509 Certificate verification #29 (domain matching wildcard in multi certificate)
410depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
411x509_verify:"data_files/cert_example_multi.crt":"data_files/test-ca.crt":"data_files/crl.pem":"mail.example.org":0:0:NULL
412
Paul Bakker91956622012-08-23 10:46:54 +0000413X509 Certificate verification #30 (domain matching multi certificate without CN)
414depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
415x509_verify:"data_files/cert_example_multi_nocn.crt":"data_files/test-ca.crt":"data_files/crl.pem":"www.shotokan-braunschweig.de":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_NOT_TRUSTED:NULL
416
417X509 Certificate verification #31 (domain not matching multi certificate without CN)
418depends_on:POLARSSL_PEM_C:POLARSSL_FS_IO
419x509_verify:"data_files/cert_example_multi_nocn.crt":"data_files/test-ca.crt":"data_files/crl.pem":"www.example.net":POLARSSL_ERR_X509_CERT_VERIFY_FAILED:BADCERT_CN_MISMATCH + BADCERT_NOT_TRUSTED:NULL
420
Paul Bakker37940d9f2009-07-10 22:38:58 +0000421X509 Parse Selftest
Paul Bakker335db3f2011-04-25 15:28:35 +0000422depends_on:POLARSSL_MD5_C:POLARSSL_PEM_C:POLARSSL_SELF_TEST
Paul Bakker37940d9f2009-07-10 22:38:58 +0000423x509_selftest:
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000424
425X509 Certificate ASN1 (Incorrect first tag)
426x509parse_crt:"":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT
427
428X509 Certificate ASN1 (Correct first tag, data length does not match)
Paul Bakker1a0f5522012-09-25 21:53:55 +0000429x509parse_crt:"300000":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000430
431X509 Certificate ASN1 (Correct first tag, no more data)
Paul Bakker9d781402011-05-09 16:17:09 +0000432x509parse_crt:"3000":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000433
Paul Bakkerfae618f2011-10-12 11:53:52 +0000434X509 Certificate ASN1 (Correct first tag, length data incorrect)
435x509parse_crt:"30023085":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_INVALID_LENGTH
436
Paul Bakkerc26a1892009-07-19 20:30:14 +0000437X509 Certificate ASN1 (Correct first tag, length data incomplete)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000438x509parse_crt:"30023083":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerc26a1892009-07-19 20:30:14 +0000439
440X509 Certificate ASN1 (Correct first tag, length data incomplete)
Paul Bakker9d781402011-05-09 16:17:09 +0000441x509parse_crt:"30023081":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerc26a1892009-07-19 20:30:14 +0000442
443X509 Certificate ASN1 (Correct first tag, length data incomplete)
Paul Bakker9d781402011-05-09 16:17:09 +0000444x509parse_crt:"3003308200":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerc26a1892009-07-19 20:30:14 +0000445
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000446X509 Certificate ASN1 (Correct first tag, second tag no TBSCertificate)
Paul Bakker9d781402011-05-09 16:17:09 +0000447x509parse_crt:"300100":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000448
449X509 Certificate ASN1 (TBSCertificate, no version tag, serial missing)
Paul Bakker9d781402011-05-09 16:17:09 +0000450x509parse_crt:"3003300100":"":POLARSSL_ERR_X509_CERT_INVALID_SERIAL + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000451
452X509 Certificate ASN1 (TBSCertificate, invalid version tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000453x509parse_crt:"30053003a00101":"":POLARSSL_ERR_X509_CERT_INVALID_VERSION + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000454
455X509 Certificate ASN1 (TBSCertificate, valid version tag, no length)
Paul Bakker9d781402011-05-09 16:17:09 +0000456x509parse_crt:"30053003a00102":"":POLARSSL_ERR_X509_CERT_INVALID_VERSION + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000457
458X509 Certificate ASN1 (TBSCertificate, valid version tag, invalid length)
Paul Bakker9d781402011-05-09 16:17:09 +0000459x509parse_crt:"30163014a012021000000000000000000000000000000000":"":POLARSSL_ERR_X509_CERT_INVALID_VERSION + POLARSSL_ERR_ASN1_INVALID_LENGTH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000460
461X509 Certificate ASN1 (TBSCertificate, valid version tag, no serial)
Paul Bakker9d781402011-05-09 16:17:09 +0000462x509parse_crt:"30073005a003020104":"":POLARSSL_ERR_X509_CERT_INVALID_SERIAL + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000463
464X509 Certificate ASN1 (TBSCertificate, invalid length version tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000465x509parse_crt:"30083006a00402010400":"":POLARSSL_ERR_X509_CERT_INVALID_VERSION + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000466
467X509 Certificate ASN1 (TBSCertificate, incorrect serial tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000468x509parse_crt:"30083006a00302010400":"":POLARSSL_ERR_X509_CERT_INVALID_SERIAL + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000469
470X509 Certificate ASN1 (TBSCertificate, incorrect serial length)
Paul Bakker9d781402011-05-09 16:17:09 +0000471x509parse_crt:"30083006a00302010482":"":POLARSSL_ERR_X509_CERT_INVALID_SERIAL + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000472
473X509 Certificate ASN1 (TBSCertificate, correct serial, no alg)
Paul Bakker9d781402011-05-09 16:17:09 +0000474x509parse_crt:"300d300ba0030201048204deadbeef":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000475
476X509 Certificate ASN1 (TBSCertificate, correct serial, no alg oid)
Paul Bakker9d781402011-05-09 16:17:09 +0000477x509parse_crt:"300e300ca0030201048204deadbeef00":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000478
Paul Bakker345fb492009-07-20 21:26:07 +0000479X509 Certificate ASN1 (TBSCertificate, alg oid no data in sequence)
Paul Bakker9d781402011-05-09 16:17:09 +0000480x509parse_crt:"300f300da0030201048204deadbeef3000":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker345fb492009-07-20 21:26:07 +0000481
482X509 Certificate ASN1 (TBSCertificate, alg with params)
Paul Bakkerf8d018a2013-06-29 12:16:17 +0200483x509parse_crt:"30163014a0030201048204deadbeef30070604cafed00d01":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000484
Paul Bakker345fb492009-07-20 21:26:07 +0000485X509 Certificate ASN1 (TBSCertificate, correct alg data, no params unknown version)
486x509parse_crt:"30153013a0030201048204deadbeef30060604cafed00d":"":POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION
487
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000488X509 Certificate ASN1 (TBSCertificate, correct alg data, unknown version)
489x509parse_crt:"30173015a0030201048204deadbeef30080604cafed00d0500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION
490
Paul Bakker345fb492009-07-20 21:26:07 +0000491X509 Certificate ASN1 (TBSCertificate, correct alg data, length mismatch)
Paul Bakker9d781402011-05-09 16:17:09 +0000492x509parse_crt:"30183016a0030201048204deadbeef30090604cafed00d050000":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakker345fb492009-07-20 21:26:07 +0000493
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000494X509 Certificate ASN1 (TBSCertificate, correct alg, unknown alg_id)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200495x509parse_crt:"30173015a0030201028204deadbeef30080604cafed00d0500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG + POLARSSL_ERR_OID_NOT_FOUND
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000496
497X509 Certificate ASN1 (TBSCertificate, correct alg, specific alg_id)
Paul Bakker9d781402011-05-09 16:17:09 +0000498x509parse_crt:"301c301aa0030201028204deadbeef300d06092a864886f70d0101020500":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000499
500X509 Certificate ASN1 (TBSCertificate, correct alg, unknown specific alg_id)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200501x509parse_crt:"301c301aa0030201028204deadbeef300d06092a864886f70d0101010500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG + POLARSSL_ERR_OID_NOT_FOUND
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000502
503X509 Certificate ASN1 (TBSCertificate, issuer no set data)
Paul Bakker9d781402011-05-09 16:17:09 +0000504x509parse_crt:"301e301ca0030201028204deadbeef300d06092a864886f70d01010205003000":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000505
506X509 Certificate ASN1 (TBSCertificate, issuer no inner seq data)
Paul Bakker9d781402011-05-09 16:17:09 +0000507x509parse_crt:"3020301ea0030201028204deadbeef300d06092a864886f70d010102050030023100":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000508
509X509 Certificate ASN1 (TBSCertificate, issuer no inner set data)
Paul Bakker9d781402011-05-09 16:17:09 +0000510x509parse_crt:"30223020a0030201028204deadbeef300d06092a864886f70d0101020500300431023000":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000511
512X509 Certificate ASN1 (TBSCertificate, issuer two inner set datas)
Paul Bakker9d781402011-05-09 16:17:09 +0000513x509parse_crt:"30243022a0030201028204deadbeef300d06092a864886f70d01010205003006310430003000":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000514
515X509 Certificate ASN1 (TBSCertificate, issuer no oid data)
Paul Bakker9d781402011-05-09 16:17:09 +0000516x509parse_crt:"30243022a0030201028204deadbeef300d06092a864886f70d01010205003006310430020600":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000517
518X509 Certificate ASN1 (TBSCertificate, issuer invalid tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000519x509parse_crt:"302a3028a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600060454657374":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000520
Paul Bakker345fb492009-07-20 21:26:07 +0000521X509 Certificate ASN1 (TBSCertificate, issuer, no string data)
Paul Bakker9d781402011-05-09 16:17:09 +0000522x509parse_crt:"30253023a0030201028204deadbeef300d06092a864886f70d0101020500300731053003060013":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker345fb492009-07-20 21:26:07 +0000523
Paul Bakker400ff6f2011-02-20 10:40:16 +0000524X509 Certificate ASN1 (TBSCertificate, issuer, no full following string)
Paul Bakker9d781402011-05-09 16:17:09 +0000525x509parse_crt:"302b3029a0030201028204deadbeef300d06092a864886f70d0101020500300d310b3009060013045465737400":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakker345fb492009-07-20 21:26:07 +0000526
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000527X509 Certificate ASN1 (TBSCertificate, valid issuer, no validity)
Paul Bakker9d781402011-05-09 16:17:09 +0000528x509parse_crt:"302a3028a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374":"":POLARSSL_ERR_X509_CERT_INVALID_DATE + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000529
530X509 Certificate ASN1 (TBSCertificate, too much date data)
Paul Bakker9d781402011-05-09 16:17:09 +0000531x509parse_crt:"30493047a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301d170c303930313031303030303030170c30393132333132333539353900":"":POLARSSL_ERR_X509_CERT_INVALID_DATE + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000532
Paul Bakker345fb492009-07-20 21:26:07 +0000533X509 Certificate ASN1 (TBSCertificate, invalid from date)
534x509parse_crt:"30483046a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303000000000170c303931323331323300000000":"":POLARSSL_ERR_X509_CERT_INVALID_DATE
535
536X509 Certificate ASN1 (TBSCertificate, invalid to date)
537x509parse_crt:"30483046a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323300000000":"":POLARSSL_ERR_X509_CERT_INVALID_DATE
538
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000539X509 Certificate ASN1 (TBSCertificate, valid validity, no subject)
Paul Bakker9d781402011-05-09 16:17:09 +0000540x509parse_crt:"30493047a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c30393132333132333539353930":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000541
542X509 Certificate ASN1 (TBSCertificate, valid subject, no pubkeyinfo)
Paul Bakker9d781402011-05-09 16:17:09 +0000543x509parse_crt:"30563054a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000544
Paul Bakker345fb492009-07-20 21:26:07 +0000545X509 Certificate ASN1 (TBSCertificate, pubkey, no alg)
Manuel Pégourié-Gonnard244569f2013-07-10 09:46:30 +0200546x509parse_crt:"30583056a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a300806001304546573743000":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker345fb492009-07-20 21:26:07 +0000547
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000548X509 Certificate ASN1 (TBSCertificate, valid subject, unknown pk alg)
Paul Bakker36f1b192011-07-13 11:32:29 +0000549x509parse_crt:"30673065a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374300f300d06092A864886F70D0101000500":"":POLARSSL_ERR_X509_UNKNOWN_PK_ALG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000550
551X509 Certificate ASN1 (TBSCertificate, pubkey, no bitstring)
Paul Bakker9d781402011-05-09 16:17:09 +0000552x509parse_crt:"30673065a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374300f300d06092A864886F70D0101010500":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000553
554X509 Certificate ASN1 (TBSCertificate, pubkey, no bitstring data)
Manuel Pégourié-Gonnard06dab802013-08-15 12:24:43 +0200555x509parse_crt:"30693067a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a300806001304546573743011300d06092A864886F70D01010105000300":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_INVALID_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000556
557X509 Certificate ASN1 (TBSCertificate, pubkey, invalid bitstring start)
Manuel Pégourié-Gonnarda2d4e642013-07-11 13:59:02 +0200558x509parse_crt:"306a3068a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a300806001304546573743012300d06092A864886F70D0101010500030101":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_INVALID_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000559
560X509 Certificate ASN1 (TBSCertificate, pubkey, invalid internal bitstring length)
Paul Bakker9d781402011-05-09 16:17:09 +0000561x509parse_crt:"306d306ba0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a300806001304546573743015300d06092A864886F70D0101010500030400300000":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000562
Paul Bakker345fb492009-07-20 21:26:07 +0000563X509 Certificate ASN1 (TBSCertificate, pubkey, invalid internal bitstring tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000564x509parse_crt:"306d306ba0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a300806001304546573743015300d06092A864886F70D0101010500030400310000":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakker345fb492009-07-20 21:26:07 +0000565
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000566X509 Certificate ASN1 (TBSCertificate, pubkey, invalid mpi)
Paul Bakker9d781402011-05-09 16:17:09 +0000567x509parse_crt:"30743072a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374301c300d06092A864886F70D0101010500030b0030080202ffff0302ffff":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000568
Paul Bakker345fb492009-07-20 21:26:07 +0000569X509 Certificate ASN1 (TBSCertificate, pubkey, total length mismatch)
Paul Bakker9d781402011-05-09 16:17:09 +0000570x509parse_crt:"30753073a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374301d300d06092A864886F70D0101010500030b0030080202ffff0202ffff00":"":POLARSSL_ERR_X509_CERT_INVALID_PUBKEY + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakker345fb492009-07-20 21:26:07 +0000571
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000572X509 Certificate ASN1 (TBSCertificate, pubkey, check failed)
573x509parse_crt:"30743072a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374301c300d06092A864886F70D0101010500030b0030080202ffff0202ffff":"":POLARSSL_ERR_RSA_KEY_CHECK_FAILED
574
575X509 Certificate ASN1 (TBSCertificate, pubkey, check failed, expanded length notation)
576x509parse_crt:"308183308180a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210fffffffffffffffffffffffffffffffe0202ffff":"":POLARSSL_ERR_RSA_KEY_CHECK_FAILED
577
578X509 Certificate ASN1 (TBSCertificate v3, Optional UIDs, Extensions not present)
Paul Bakker9d781402011-05-09 16:17:09 +0000579x509parse_crt:"308183308180a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000580
581X509 Certificate ASN1 (TBSCertificate v3, issuerID wrong tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000582x509parse_crt:"308184308181a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff00":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000583
584X509 Certificate ASN1 (TBSCertificate v3, UIDs, no ext)
Paul Bakker9d781402011-05-09 16:17:09 +0000585x509parse_crt:"308189308186a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bb":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000586
Paul Bakker345fb492009-07-20 21:26:07 +0000587X509 Certificate ASN1 (TBSCertificate v3, UIDs, invalid length)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000588x509parse_crt:"308189308186a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa185aaa201bb":"":POLARSSL_ERR_ASN1_INVALID_LENGTH
Paul Bakker345fb492009-07-20 21:26:07 +0000589
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000590X509 Certificate ASN1 (TBSCertificate v3, ext empty)
Paul Bakker9d781402011-05-09 16:17:09 +0000591x509parse_crt:"30818b308188a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba300":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000592
593X509 Certificate ASN1 (TBSCertificate v3, ext length mismatch)
Paul Bakker9d781402011-05-09 16:17:09 +0000594x509parse_crt:"30818e30818ba0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba303300000":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000595
596X509 Certificate ASN1 (TBSCertificate v3, first ext invalid)
Paul Bakker9d781402011-05-09 16:17:09 +0000597x509parse_crt:"30818f30818ca0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba30330023000":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000598
Paul Bakkere4ff4132009-07-27 20:22:10 +0000599X509 Certificate ASN1 (TBSCertificate v3, first ext invalid tag)
Paul Bakker9d781402011-05-09 16:17:09 +0000600x509parse_crt:"30819030818da0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba3043002310000":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkere4ff4132009-07-27 20:22:10 +0000601
Paul Bakkerc6ce8382009-07-27 21:34:45 +0000602X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, bool len missing)
Paul Bakker9d781402011-05-09 16:17:09 +0000603x509parse_crt:"308198308195a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba30c300a30060603551d1301010100":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerc6ce8382009-07-27 21:34:45 +0000604
605X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, data missing)
Paul Bakker9d781402011-05-09 16:17:09 +0000606x509parse_crt:"308198308195a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba30c300a30080603551d1301010100":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerc6ce8382009-07-27 21:34:45 +0000607
608X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, no octet present)
Paul Bakker9d781402011-05-09 16:17:09 +0000609x509parse_crt:"308198308195a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba30d300b30090603551d1301010100":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkere4ff4132009-07-27 20:22:10 +0000610
611X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, octet data missing)
Paul Bakker9d781402011-05-09 16:17:09 +0000612x509parse_crt:"30819c308199a0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba311300f300d0603551d130101010403300100":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakkere4ff4132009-07-27 20:22:10 +0000613
614X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, no pathlen)
Paul Bakker9d781402011-05-09 16:17:09 +0000615x509parse_crt:"30819f30819ca0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba314301230100603551d130101010406300402010102":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkere4ff4132009-07-27 20:22:10 +0000616
617X509 Certificate ASN1 (TBSCertificate v3, ext BasicContraint tag, octet len mismatch)
Paul Bakker9d781402011-05-09 16:17:09 +0000618x509parse_crt:"3081a230819fa0030201028204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffffa101aaa201bba317301530130603551d130101010409300702010102010100":"":POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkere4ff4132009-07-27 20:22:10 +0000619
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000620X509 Certificate ASN1 (correct pubkey, no sig_alg)
Paul Bakker9d781402011-05-09 16:17:09 +0000621x509parse_crt:"308183308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000622
623X509 Certificate ASN1 (sig_alg mismatch)
624x509parse_crt:"308192308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0102020500":"":POLARSSL_ERR_X509_CERT_SIG_MISMATCH
625
626X509 Certificate ASN1 (sig_alg, no sig)
Paul Bakker9d781402011-05-09 16:17:09 +0000627x509parse_crt:"308192308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500":"":POLARSSL_ERR_X509_CERT_INVALID_SIGNATURE + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000628
629X509 Certificate ASN1 (signature, invalid sig data)
Manuel Pégourié-Gonnarda2d4e642013-07-11 13:59:02 +0200630x509parse_crt:"308195308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030100":"":POLARSSL_ERR_X509_CERT_INVALID_SIGNATURE + POLARSSL_ERR_ASN1_INVALID_DATA
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000631
632X509 Certificate ASN1 (signature, data left)
Paul Bakker9d781402011-05-09 16:17:09 +0000633x509parse_crt:"308197308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff00":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000634
635X509 Certificate ASN1 (correct)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200636x509parse_crt:"308196308180a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: ?\?=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerb2c38f52009-07-19 19:36:15 +0000637
Paul Bakker91200182010-02-18 21:26:15 +0000638X509 Certificate ASN1 (GeneralizedTime instead of UTCTime)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200639x509parse_crt:"308198308182a0030201008204deadbeef300d06092a864886f70d0101020500300c310a30080600130454657374301e180e3230313030313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: ?\?=Test\nsubject name \: ?\?=Test\nissued on \: 2010-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakker91200182010-02-18 21:26:15 +0000640
Paul Bakkerc26a1892009-07-19 20:30:14 +0000641X509 Certificate ASN1 (Name with X520 CN)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200642x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b0603550403130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: CN=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000643
644X509 Certificate ASN1 (Name with X520 C)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200645x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b0603550406130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: C=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000646
647X509 Certificate ASN1 (Name with X520 L)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200648x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b0603550407130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: L=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000649
650X509 Certificate ASN1 (Name with X520 ST)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200651x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b0603550408130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: ST=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000652
653X509 Certificate ASN1 (Name with X520 O)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200654x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b060355040a130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: O=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000655
656X509 Certificate ASN1 (Name with X520 OU)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200657x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b060355040b130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: OU=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000658
659X509 Certificate ASN1 (Name with unknown X520 part)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200660x509parse_crt:"308199308183a0030201008204deadbeef300d06092a864886f70d0101020500300f310d300b06035504de130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: ?\?=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000661
662X509 Certificate ASN1 (Name with PKCS9 email)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200663x509parse_crt:"30819f308189a0030201008204deadbeef300d06092a864886f70d010102050030153113301106092a864886f70d010901130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: emailAddress=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000664
665X509 Certificate ASN1 (Name with unknown PKCS9 part)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200666x509parse_crt:"30819f308189a0030201008204deadbeef300d06092a864886f70d010102050030153113301106092a864886f70d0109ab130454657374301c170c303930313031303030303030170c303931323331323335393539300c310a30080600130454657374302a300d06092A864886F70D010101050003190030160210ffffffffffffffffffffffffffffffff0202ffff300d06092a864886f70d0101020500030200ff":"cert. version \: 1\nserial number \: DE\:AD\:BE\:EF\nissuer name \: ?\?=Test\nsubject name \: ?\?=Test\nissued on \: 2009-01-01 00\:00\:00\nexpires on \: 2009-12-31 23\:59\:59\nsigned using \: RSA with MD2\nRSA key size \: 128 bits\n":0
Paul Bakkerc26a1892009-07-19 20:30:14 +0000667
Manuel Pégourié-Gonnarda3c86c32013-07-10 16:54:29 +0200668X509 Certificate ASN1 (ECDSA signature, RSA key)
Manuel Pégourié-Gonnard72ef0b72013-07-10 12:20:54 +0200669x509parse_crt:"3081E630819E020103300906072A8648CE3D0401300F310D300B0603550403130454657374301E170D3133303731303039343631385A170D3233303730383039343631385A300F310D300B0603550403130454657374304C300D06092A864886F70D0101010500033B003038023100E8F546061D3B49BC2F6B7524B7EA4D73A8D5293EE8C64D9407B70B5D16BAEBC32B8205591EAB4E1EB57E9241883701250203010001300906072A8648CE3D0401033800303502186E18209AFBED14A0D9A796EFCAD68891E3CCD5F75815C833021900E92B4FD460B1994693243B9FFAD54729DE865381BDA41D25":"cert. version \: 1\nserial number \: 03\nissuer name \: CN=Test\nsubject name \: CN=Test\nissued on \: 2013-07-10 09\:46\:18\nexpires on \: 2023-07-08 09\:46\:18\nsigned using \: ECDSA with SHA1\nRSA key size \: 384 bits\n":0
670
Manuel Pégourié-Gonnarda3c86c32013-07-10 16:54:29 +0200671X509 Certificate ASN1 (ECDSA signature, EC key)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200672depends_on:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnarda3c86c32013-07-10 16:54:29 +0200673x509parse_crt:"3081EB3081A3020900F41534662EC7E912300906072A8648CE3D0401300F310D300B0603550403130454657374301E170D3133303731303039343031395A170D3233303730383039343031395A300F310D300B06035504031304546573743049301306072A8648CE3D020106082A8648CE3D030101033200042137969FABD4E370624A0E1A33E379CAB950CCE00EF8C3C3E2ADAEB7271C8F07659D65D3D777DCF21614363AE4B6E617300906072A8648CE3D04010338003035021858CC0F957946FE6A303D92885A456AA74C743C7B708CBD37021900FE293CAC21AF352D16B82EB8EA54E9410B3ABAADD9F05DD6":"cert. version \: 1\nserial number \: F4\:15\:34\:66\:2E\:C7\:E9\:12\nissuer name \: CN=Test\nsubject name \: CN=Test\nissued on \: 2013-07-10 09\:40\:19\nexpires on \: 2023-07-08 09\:40\:19\nsigned using \: ECDSA with SHA1\nEC key size \: 192 bits\n":0
674
675X509 Certificate ASN1 (RSA signature, EC key)
Manuel Pégourié-Gonnard4f475382013-07-11 16:47:11 +0200676depends_on:POLARSSL_ECP_C:POLARSSL_ECP_DP_SECP192R1_ENABLED
Manuel Pégourié-Gonnarda3c86c32013-07-10 16:54:29 +0200677x509parse_crt:"3081E430819F020104300D06092A864886F70D0101050500300F310D300B0603550403130454657374301E170D3133303731303135303233375A170D3233303730383135303233375A300F310D300B06035504031304546573743049301306072A8648CE3D020106082A8648CE3D03010103320004E962551A325B21B50CF6B990E33D4318FD16677130726357A196E3EFE7107BCB6BDC6D9DB2A4DF7C964ACFE81798433D300D06092A864886F70D01010505000331001A6C18CD1E457474B2D3912743F44B571341A7859A0122774A8E19A671680878936949F904C9255BDD6FFFDB33A7E6D8":"cert. version \: 1\nserial number \: 04\nissuer name \: CN=Test\nsubject name \: CN=Test\nissued on \: 2013-07-10 15\:02\:37\nexpires on \: 2023-07-08 15\:02\:37\nsigned using \: RSA with SHA1\nEC key size \: 192 bits\n":0
678
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000679X509 CRL ASN1 (Incorrect first tag)
680x509parse_crl:"":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT
681
682X509 CRL ASN1 (Correct first tag, data length does not match)
Paul Bakker9d781402011-05-09 16:17:09 +0000683x509parse_crl:"300000":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000684
685X509 CRL ASN1 (TBSCertList, tag missing)
Paul Bakker9d781402011-05-09 16:17:09 +0000686x509parse_crl:"3000":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000687
688X509 CRL ASN1 (TBSCertList, version tag len missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000689x509parse_crl:"3003300102":"":POLARSSL_ERR_X509_CERT_INVALID_VERSION + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000690
691X509 CRL ASN1 (TBSCertList, version correct, alg missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000692x509parse_crl:"30053003020100":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000693
694X509 CRL ASN1 (TBSCertList, alg correct, incorrect version)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000695x509parse_crl:"300b3009020102300406000500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000696
697X509 CRL ASN1 (TBSCertList, correct version, sig_oid1 unknown)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000698x509parse_crl:"300b3009020100300406000500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000699
700X509 CRL ASN1 (TBSCertList, sig_oid1 id unknown)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000701x509parse_crl:"30143012020100300d06092a864886f70d01010f0500":"":POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000702
703X509 CRL ASN1 (TBSCertList, sig_oid1 correct, issuer missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000704x509parse_crl:"30143012020100300d06092a864886f70d01010e0500":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000705
706X509 CRL ASN1 (TBSCertList, issuer set missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000707x509parse_crl:"30163014020100300d06092a864886f70d01010e05003000":"":POLARSSL_ERR_X509_CERT_INVALID_NAME + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000708
709X509 CRL ASN1 (TBSCertList, correct issuer, thisUpdate missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000710x509parse_crl:"30253023020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344":"":POLARSSL_ERR_X509_CERT_INVALID_DATE + POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000711
712X509 CRL ASN1 (TBSCertList, correct thisUpdate, nextUpdate missing, entries length missing)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000713x509parse_crl:"30343032020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c30393031303130303030303030":"":POLARSSL_ERR_ASN1_OUT_OF_DATA
Paul Bakkere4ff4132009-07-27 20:22:10 +0000714
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000715X509 CRL ASN1 (TBSCertList, entries present, invalid sig_alg)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000716x509parse_crl:"304a3047020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030301430128202abcd170c30383132333132333539353900":"":POLARSSL_ERR_X509_CERT_INVALID_ALG + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000717
718X509 CRL ASN1 (TBSCertList, entries present, date in entry invalid)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000719x509parse_crl:"304a3047020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030301430128202abcd190c30383132333132333539353900":"":POLARSSL_ERR_X509_CERT_INVALID_DATE + POLARSSL_ERR_ASN1_UNEXPECTED_TAG
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000720
721X509 CRL ASN1 (TBSCertList, sig_alg present, sig_alg does not match)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000722x509parse_crl:"30583047020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030301430128202abcd170c303831323331323335393539300d06092a864886f70d01010d0500":"":POLARSSL_ERR_X509_CERT_SIG_MISMATCH
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000723
Paul Bakkere4ff4132009-07-27 20:22:10 +0000724X509 CRL ASN1 (TBSCertList, sig present, len mismatch)
Paul Bakkerfae618f2011-10-12 11:53:52 +0000725x509parse_crl:"305d3047020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030301430128202abcd170c303831323331323335393539300d06092a864886f70d01010e05000302000100":"":POLARSSL_ERR_X509_CERT_INVALID_FORMAT + POLARSSL_ERR_ASN1_LENGTH_MISMATCH
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000726
727X509 CRL ASN1 (TBSCertList, sig present)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200728x509parse_crl:"305c3047020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030301430128202abcd170c303831323331323335393539300d06092a864886f70d01010e050003020001":"CRL version \: 1\nissuer name \: CN=ABCD\nthis update \: 2009-01-01 00\:00\:00\nnext update \: 0000-00-00 00\:00\:00\nRevoked certificates\:\nserial number\: AB\:CD revocation date\: 2008-12-31 23\:59\:59\nsigned using \: RSA with SHA-224\n":0
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000729
Paul Bakkere4ff4132009-07-27 20:22:10 +0000730X509 CRL ASN1 (TBSCertList, no entries)
Paul Bakkerc70b9822013-04-07 22:00:46 +0200731x509parse_crl:"30463031020100300d06092a864886f70d01010e0500300f310d300b0603550403130441424344170c303930313031303030303030300d06092a864886f70d01010e050003020001":"CRL version \: 1\nissuer name \: CN=ABCD\nthis update \: 2009-01-01 00\:00\:00\nnext update \: 0000-00-00 00\:00\:00\nRevoked certificates\:\nsigned using \: RSA with SHA-224\n":0
Paul Bakkere4ff4132009-07-27 20:22:10 +0000732
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000733X509 Key ASN1 (Incorrect first tag)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200734x509parse_key_rsa:"":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000735
736X509 Key ASN1 (RSAPrivateKey, incorrect version tag)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200737x509parse_key_rsa:"300100":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000738
739X509 Key ASN1 (RSAPrivateKey, version tag missing)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200740x509parse_key_rsa:"3000":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000741
742X509 Key ASN1 (RSAPrivateKey, invalid version)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200743x509parse_key_rsa:"3003020101":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000744
745X509 Key ASN1 (RSAPrivateKey, correct version, incorrect tag)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200746x509parse_key_rsa:"300402010000":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000747
748X509 Key ASN1 (RSAPrivateKey, values present, length mismatch)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200749x509parse_key_rsa:"301c02010002010102010102010102010102010102010102010102010100":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT
Paul Bakker6b0fa4f2009-07-20 20:35:41 +0000750
751X509 Key ASN1 (RSAPrivateKey, values present, check_privkey fails)
Manuel Pégourié-Gonnardba4878a2013-06-27 10:51:01 +0200752x509parse_key_rsa:"301b020100020101020101020101020101020101020101020101020101":"":POLARSSL_ERR_X509_KEY_INVALID_FORMAT