[ssl_mgmt] Ensure version 3 certificate are used

This commit is contained in:
Thomas Preud'homme 2014-09-12 22:04:58 +08:00
parent df4dc8863e
commit 87f906c6a7
5 changed files with 10 additions and 3 deletions

View File

@ -22,6 +22,9 @@ nameopt = default_ca
certopt = default_ca
policy = policy_match
copy_extensions = copy
# We want those extensions only to generate the root certificates, so
# we specify it on the command line:
x509_extensions = v3_ca
[ policy_match ]
countryName = match
@ -43,9 +46,6 @@ string_mask = nombstr
prompt = no
distinguished_name = req_distinguished_name
req_extensions = v3_req
# We want those extensions only to generate the root certificates, so
# we specify it on the command line:
x509_extensions = v3_ca
[ req_distinguished_name ]
organizationName = @ORG@

3
ssl_mgmt/tests/4/cmdline Normal file
View File

@ -0,0 +1,3 @@
keyId= cnfFilePath=./ssl_mgmt.conf ../ssl_mgmt renew foo \
&& openssl x509 -in destdir/certs/foo-cert.pem -text -noout \
| grep "Version: 3"

2
ssl_mgmt/tests/4/driver Executable file
View File

@ -0,0 +1,2 @@
echo
echo "y"

1
ssl_mgmt/tests/4/fini Symbolic link
View File

@ -0,0 +1 @@
../restore_foo_fini

1
ssl_mgmt/tests/4/init Symbolic link
View File

@ -0,0 +1 @@
../save_foo_init