Ideally, you should install the root CA certificates system-wide on your machine; we have separate instructions below for Windows and Linux. If you don't have administrator privileges on your machine, though, you can at least import the certificates into your web browser, as described in the third section.
The provided scripts use Red Hat Ansible, so first you need to install that... Get the latest build for your version of Python, with PIP. (Installing/upgrading PIP itself and some related tools first will make installing Ansible go more smoothly.)
sudo yum install -y python3 python3-pip
python3 -m pip install --user --upgrade pip setuptools virtualenv wheel
python3 -m pip install --user --upgrade ansible
If you have leftover copies of the certificates bundle from a previous installation, delete them before proceeding.
sudo rm -rf /tmp/certs/
Then you can clone this repo and run the script like this:
git clone "https://github.com/nswccd-devsecops/dod-root-ca-and-cac"
cd ./dod-root-ca-and-cac/
ansible-playbook --ask-become-pass ./dod-root-ca-and-cac-installer.yml
Don't run this command with sudo
, but enter your sudo password when prompted to "become".
Reboot.
Download the InstallRoot installer for Windows from DOD Cyber Exchange, using the search bar in the Tools section of the page to filter for "InstallRoot Windows".
https://public.cyber.mil/pki-pke/tools-configuration-files/
There you should see both
- InstallRoot 5.6 NIPR 64-bit Windows Installer (if you are admin on your machine)
- and InstallRoot 5.6 NIPR Non-Administrator 64-bit Windows Installer
Run the installer, follow the instructions for "Install DoD Certificates" at first launch, and then reboot.
If you don't have the necessary permissions to run even the non-admin installer, ideally you should submit a ticket to your help desk, asking them to run the latest InstallRoot (or otherwise add DOD Root CA 3) for you... But you could import into your browser in the meanwhile, in the next section.
If you don't have permissions to properly install the root CA at all, you can at least import certificates into your web browser. Go to the Cyber Exchange PKI-PKE home page and click on "New DoD PKI CAs released".
https://public.cyber.mil/pki-pke/
Direct download link:
https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/unclass-certificates_pkcs7_DoD.zip
Unpack the Zip file, and import the contained certificates in each web browser you use.
- Mozilla Firefox
- In the top-right of the window, click on the ≡ menu > Settings.
- In the left side-bar, click on Privacy & Security.
- Scroll down to the Certificates section, and click View Certificates...
- On the Authorities tab, click the Import button.
- You probably only need the certificate chain file
certificates_pkcs7_v5_13_dod_der.p7b
, but Cyber Exchange occasionally changes how the files are formatted, so I just attempt to import all certificates (one at a time) just in case. This is redundant and the browser will mention some certificates were already imported with one of the previous files. Click OK to close the dialog when you're done. - On Linux,if you're manually importing the DOD root CA, you may also need to import the CAC software module:
- Back on Settings > Privacy & Security > Certificates, also click on Security Devices.
- Click Load.
- Enter something descriptive like "OpenSC CAC module" in the Module Name field.
- Copy/paste or navigate to the path
/usr/lib64/opensc-pkcs11.so
for Module Filename. - Click OK to close all dialogs.
- Restart your browser and/or reboot.
- Google Chrome
- In the top-right of the window, click on the ⫶ menu > Settings.
- In the left side-bar click on Privacy and Security.
- In the Privacy and Security section, click on the Security row.
- Scroll down and click on Manage Certificates.
- On the Authorities tab, click the Import button.
- You probably only need the certificate chain file
certificates_pkcs7_v5_13_dod_der.p7b
, but Cyber Exchange occasionally changes how the files are formatted, so I just attempt to import all certificates (one at a time) just in case. This is redundant and the browser will mention some certificates were already imported with one of the previous files. - Restart your browser and/or reboot.
- Microsoft Edge
- In the top-right of the window, click on the ⋯ menu > Settings.
- In the left side-bar, click on Privacy, Search, and Services.
- Scroll down to the Security section, and click on Manage Certificates.
- On the Trusted Root Certificate Authorities tab, click on Import...
- You probably only need the certificate chain file
certificates_pkcs7_v5_13_dod_der.p7b
, but Cyber Exchange occasionally changes how the files are formatted, so I just attempt to import all certificates (one at a time) just in case. This is redundant and the browser will mention some certificates were already imported with one of the previous files. - Restart your browser and/or reboot.