diff options
author | Kenny Root <kroot@google.com> | 2013-03-06 14:10:33 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-03-06 14:11:13 -0800 |
commit | 8659e5f09d368ac074cabeafe65fb35acb919e49 (patch) | |
tree | e83241caea04f287ffd2052de79d7a645090429c /support/src | |
parent | 7d9bf11adcfa36b0672b8024b2bf4c8335a0d223 (diff) | |
download | libcore-8659e5f09d368ac074cabeafe65fb35acb919e49.zip libcore-8659e5f09d368ac074cabeafe65fb35acb919e49.tar.gz libcore-8659e5f09d368ac074cabeafe65fb35acb919e49.tar.bz2 |
Add test for empty CRL
Change-Id: Ie8b099eec5628e5c577cff23050431d4ed1e2be2
Diffstat (limited to 'support/src')
-rwxr-xr-x | support/src/test/java/tests/resources/x509/create.sh | 5 | ||||
-rw-r--r-- | support/src/test/java/tests/resources/x509/crl-empty.der | bin | 0 -> 297 bytes |
2 files changed, 4 insertions, 1 deletions
diff --git a/support/src/test/java/tests/resources/x509/create.sh b/support/src/test/java/tests/resources/x509/create.sh index 0f7cb81..8362fab 100755 --- a/support/src/test/java/tests/resources/x509/create.sh +++ b/support/src/test/java/tests/resources/x509/create.sh @@ -80,6 +80,9 @@ echo "01" > /tmp/ca/serial openssl req -new -nodes -batch -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 -config default.cnf openssl x509 -in cacert.pem -outform d > cert-crl-ca.der +openssl ca -gencrl -crlhours 70 -keyfile cakey.pem -cert cacert.pem -out crl-empty.pem -config default.cnf +openssl crl -in crl-empty.pem -outform d -out crl-empty.der + openssl x509 -inform d -in cert-rsa.der -out cert-rsa.pem openssl ca -revoke cert-rsa.pem -keyfile cakey.pem -cert cacert.pem -config default.cnf openssl ca -gencrl -crlhours 70 -keyfile cakey.pem -cert cacert.pem -out crl-rsa.pem -config default.cnf @@ -103,7 +106,7 @@ openssl crl -in crl-unsupported.pem -outform d -out crl-unsupported.der openssl crl -inform d -in crl-rsa.der -noout -lastupdate -nextupdate > crl-rsa-dates.txt openssl crl -inform d -in crl-rsa-dsa.der -noout -lastupdate -nextupdate > crl-rsa-dsa-dates.txt -rm -f cert-rsa.pem cert-dsa.pem cacert.pem cakey.pem crl-rsa.pem crl-rsa-dsa.pem crl-unsupported.pem +rm -f cert-rsa.pem cert-dsa.pem cacert.pem cakey.pem crl-rsa.pem crl-rsa-dsa.pem crl-unsupported.pem crl-empty.pem rm -rf /tmp/ca rm -f privkey.pem diff --git a/support/src/test/java/tests/resources/x509/crl-empty.der b/support/src/test/java/tests/resources/x509/crl-empty.der Binary files differnew file mode 100644 index 0000000..c5d21a4 --- /dev/null +++ b/support/src/test/java/tests/resources/x509/crl-empty.der |