diff options
author | Maciej Wejs <maciej.wejs@nokia.com> | 2018-08-17 13:56:31 +0200 |
---|---|---|
committer | Maciej Wejs <maciej.wejs@nokia.com> | 2018-08-17 12:01:06 +0000 |
commit | 02c1970bc985e1263a141c5ac22dee33ebae2df6 (patch) | |
tree | cb71cd546bcf3a381f95a963cf4b5600f72c55a9 /conf/CA/newIntermediate.sh | |
parent | 7fa31dee0dcfc9ef37703feef1c3d573728be742 (diff) |
Improvements of Certs creation scripts
Corrections and usability improvements
of Certificates creation scripts located at:
/aaf/authz/conf/CA
Change-Id: I1b933f4eaf49e94805e5307563886049606d4103
Issue-ID: AAF-441
Signed-off-by: Maciej Wejs <maciej.wejs@nokia.com>
Diffstat (limited to 'conf/CA/newIntermediate.sh')
-rw-r--r-- | conf/CA/newIntermediate.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/conf/CA/newIntermediate.sh b/conf/CA/newIntermediate.sh index 303c22e1..b548dd45 100644 --- a/conf/CA/newIntermediate.sh +++ b/conf/CA/newIntermediate.sh @@ -41,19 +41,18 @@ echo $SUBJECT $PASSPHRASE EOF - chmod 400 $DIR/private/$CN.key + chmod 400 $DIR/private/ca.key openssl req -verify -text -noout -in $DIR/$CN.csr # Sign it openssl ca -config openssl.conf -extensions v3_intermediate_ca \ -days 1826 \ - -cert certs/ca.crt -keyfile private/ca.key -out $DIR/certs/ca.crt \ + -cert certs/ca.crt -keyfile private/ca.key -out $DIR/certs/ca.crt \ -infiles $DIR/$CN.csr - openssl x509 -text -noout -in $DIR/certs/ca.crt + openssl x509 -text -noout -in $DIR/certs/ca.crt - - openssl verify -CAfile certs/ca.crt $DIR/certs/ca.crt + openssl verify -CAfile certs/ca.crt $DIR/certs/ca.crt # Create a Signer p12 script |