add ca srl param input to openssl command (#66)

Co-authored-by: Hisham Anver <Hisham.Anver@team.telstra.com>
pull/73/head
hishamanver 2020-12-03 00:57:27 +11:00 committed by GitHub
parent 0b6da4be92
commit dfb6a5dea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ EOF
[[ ${DEBUG} -gt 0 ]] && openssl req -in ia.csr -noout -text [[ ${DEBUG} -gt 0 ]] && openssl req -in ia.csr -noout -text
logInfo "Sign the IA request with the CA cert and key, producing the IA cert" logInfo "Sign the IA request with the CA cert and key, producing the IA cert"
openssl x509 -req -days 730 -in ia.csr -CA ${CA_CRT_FILE} -CAkey ${CA_KEY_FILE} -out ia.crt -passin pass:foobar -extensions IA -extfile <( openssl x509 -req -days 730 -in ia.csr -CA ${CA_CRT_FILE} -CAkey ${CA_KEY_FILE} -CAserial ${CA_SRL_FILE} -out ia.crt -passin pass:foobar -extensions IA -extfile <(
cat <<-EOF cat <<-EOF
[req] [req]
distinguished_name = dn distinguished_name = dn