This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Import DoD root certificates into linux CA store | |
# Version 0.3.0 updated 20240304 | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
add_dod_certs() { | |
local bundle cert certdir file form tmpdir url update | |
# Location of bundle from DISA site | |
url='https://public.cyber.mil/pki-pke/pkipke-document-library/' | |
bundle=$(curl -s $url | awk -F '"' 'tolower($2) ~ /dod.zip/ {print $2}') |