Skip to content

Commit

Permalink
Merge pull request #700 from AMWA-TV/garethsb-patch-chain-pfx
Browse files Browse the repository at this point in the history
[JT-NM Tested][BCP-003-01] Export chain as PFX file as well as PEM format
  • Loading branch information
garethsb authored Aug 17, 2022
2 parents d0211f3 + fb5f9ea commit 88034d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_data/BCP00301/ca/generateCerts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ openssl req -config intermediate/openssl.cnf -key intermediate/private/rsa.$FQDN
openssl ca -batch -config intermediate/openssl.cnf -extensions server_cert -days 18250 -notext -md sha256 -in intermediate/csr/ecdsa.$FQDN.csr.pem -out intermediate/certs/ecdsa.$FQDN.cert.pem
cat intermediate/certs/ecdsa.$FQDN.cert.pem intermediate/certs/ca-chain.cert.pem > intermediate/certs/ecdsa.$FQDN.cert.chain.pem
openssl pkcs12 -passout pass: -export -out intermediate/certs/ecdsa.$FQDN.cert.pfx -inkey intermediate/private/ecdsa.$FQDN.key.pem -in intermediate/certs/ecdsa.$FQDN.cert.pem
openssl pkcs12 -passout pass: -export -out intermediate/certs/ecdsa.$FQDN.cert.chain.pfx -inkey intermediate/private/ecdsa.$FQDN.key.pem -in intermediate/certs/ecdsa.$FQDN.cert.pem -certfile intermediate/certs/ca-chain.cert.pem

# Sign RSA CSR
openssl ca -batch -config intermediate/openssl.cnf -extensions server_cert -days 18250 -notext -md sha256 -in intermediate/csr/rsa.$FQDN.csr.pem -out intermediate/certs/rsa.$FQDN.cert.pem
cat intermediate/certs/rsa.$FQDN.cert.pem intermediate/certs/ca-chain.cert.pem > intermediate/certs/rsa.$FQDN.cert.chain.pem
openssl pkcs12 -passout pass: -export -out intermediate/certs/rsa.$FQDN.cert.pfx -inkey intermediate/private/rsa.$FQDN.key.pem -in intermediate/certs/rsa.$FQDN.cert.pem
openssl pkcs12 -passout pass: -export -out intermediate/certs/rsa.$FQDN.cert.chain.pfx -inkey intermediate/private/rsa.$FQDN.key.pem -in intermediate/certs/rsa.$FQDN.cert.pem -certfile intermediate/certs/ca-chain.cert.pem

0 comments on commit 88034d1

Please sign in to comment.