Skip to content

Commit

Permalink
fix: update dod cas cert name (#950)
Browse files Browse the repository at this point in the history
* chore: update DOD Root CAs Bundle

* fix: fix cert name
  • Loading branch information
minhlai authored Mar 3, 2023
1 parent 5e4731e commit 119a3b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/add-dod-cas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
unzip unclass-certificates_pkcs7_DoD.zip

# Convert the PKCS#7 bundle into individual PEM files
openssl pkcs7 -print_certs -in certificates_pkcs7_v5_11_dod/*.pem.p7b |
openssl pkcs7 -print_certs -in certificates_pkcs7_v5_11_dod/*_pem.p7b |

awk 'BEGIN {c=0} /subject=/ {c++} {print > "cert." c ".pem"}'

# Rename the files based on the CA name
Expand Down

0 comments on commit 119a3b6

Please sign in to comment.