diff options
author | Kenny Root <kroot@google.com> | 2013-01-07 16:10:52 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-01-07 16:20:58 -0800 |
commit | 0d7f656d7d7bdb65531cf97d25060a426d03ae76 (patch) | |
tree | b759b36483be16ee26f8ab2b1440eedcc16bd56f /support/src | |
parent | b93817d96f599bf8b2ed47dbbefd623c391ddaa3 (diff) | |
download | libcore-0d7f656d7d7bdb65531cf97d25060a426d03ae76.zip libcore-0d7f656d7d7bdb65531cf97d25060a426d03ae76.tar.gz libcore-0d7f656d7d7bdb65531cf97d25060a426d03ae76.tar.bz2 |
X509CertificateTest: test for empty subjectAltNames
If the subjectAltNames field is missing, providers should return null
Change-Id: If11202d97e0a5a41ca598fb7df3320d6a20474c9
Diffstat (limited to 'support/src')
-rw-r--r-- | support/src/test/java/tests/resources/x509/cert-alt-none.der | bin | 0 -> 576 bytes | |||
-rwxr-xr-x | support/src/test/java/tests/resources/x509/create.sh | 2 | ||||
-rw-r--r-- | support/src/test/java/tests/resources/x509/default.cnf | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/support/src/test/java/tests/resources/x509/cert-alt-none.der b/support/src/test/java/tests/resources/x509/cert-alt-none.der Binary files differnew file mode 100644 index 0000000..fbf543a --- /dev/null +++ b/support/src/test/java/tests/resources/x509/cert-alt-none.der diff --git a/support/src/test/java/tests/resources/x509/create.sh b/support/src/test/java/tests/resources/x509/create.sh index 5db8557..dfab42e 100755 --- a/support/src/test/java/tests/resources/x509/create.sh +++ b/support/src/test/java/tests/resources/x509/create.sh @@ -55,6 +55,8 @@ openssl req -config ${DIR}/default.cnf -new -nodes -batch | openssl x509 -extfil openssl req -config ${DIR}/default.cnf -new -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions alt_rid_cert -req -signkey privkey.pem -outform d > cert-alt-rid.der +openssl req -config ${DIR}/default.cnf -new -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions alt_none_cert -req -signkey privkey.pem -outform d > cert-alt-none.der + openssl req -config ${DIR}/default.cnf -new -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions ipv6_cert -req -signkey privkey.pem -outform d > cert-ipv6.der openssl req -config ${DIR}/default.cnf -new -nodes -batch | openssl x509 -extfile ${DIR}/default.cnf -extensions unsupported_cert -req -signkey privkey.pem -outform d > cert-unsupported.der diff --git a/support/src/test/java/tests/resources/x509/default.cnf b/support/src/test/java/tests/resources/x509/default.cnf index d7c53c5..bdb2dec 100644 --- a/support/src/test/java/tests/resources/x509/default.cnf +++ b/support/src/test/java/tests/resources/x509/default.cnf @@ -224,6 +224,8 @@ subjectAltName = @alt_names issuerAltName = @alt_names #subjectAltName = ASN1:SEQUENCE:raw_alt_names +[ alt_none_cert ] + [ alt_names ] otherName.0 = 1.2.3.4;UTF8:test1 email.0 = x509@example.com |