diff options
author | Rob Percival <robpercival@google.com> | 2016-03-10 20:26:34 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-02-22 10:40:30 -0500 |
commit | caee75d2c66221a5c519f881ba216af9bd240c35 (patch) | |
tree | 4ae7b352dadbd55585e791b6615491fd27c5c761 /test/recipes/80-test_ca.t | |
parent | b6486bf749bf6246dbae7643c5fb7717cf388072 (diff) | |
download | openssl-caee75d2c66221a5c519f881ba216af9bd240c35.zip openssl-caee75d2c66221a5c519f881ba216af9bd240c35.tar.gz openssl-caee75d2c66221a5c519f881ba216af9bd240c35.tar.bz2 |
Basic test for "openssl req -precert" via apps/CA.pl
TODO(robpercival): Should actually test that the output certificate
contains the poison extension.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/843)
Diffstat (limited to 'test/recipes/80-test_ca.t')
-rw-r--r-- | test/recipes/80-test_ca.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/recipes/80-test_ca.t b/test/recipes/80-test_ca.t index 28a090e..4766b82 100644 --- a/test/recipes/80-test_ca.t +++ b/test/recipes/80-test_ca.t @@ -22,7 +22,7 @@ my $std_openssl_cnf = rmtree("demoCA", { safe => 0 }); -plan tests => 4; +plan tests => 5; SKIP: { $ENV{OPENSSL_CONFIG} = '-config "'.srctop_file("test", "CAss.cnf").'"'; skip "failed creating CA structure", 3 @@ -41,6 +41,10 @@ plan tests => 4; ok(run(perlapp(["CA.pl", "-verify", "newcert.pem"])), 'verifying new certificate'); + + $ENV{OPENSSL_CONFIG} = "-config ".srctop_file("test", "Uss.cnf"); + ok(run(perlapp(["CA.pl", "-newprecert"], stderr => undef)), + 'creating new pre-certificate'); } |