All computers in VA already have this setup, if you are using a non-VA laptop for development you will need to trust the VA Root Certificate Authority (CA) in your browser(s).
- http://crl.pki.va.gov/PKI/AIA/VA/VA-Internal-S2-RCA1-v1.cer
- http://crl.pki.va.gov/PKI/AIA/VA/VA-Internal-S2-ICA1-v1.cer
If you see a message from your browser like the following:
Click the "^" button and select "Keep."
- Open Keychain Access
- Go to Certificates (under Category in left sidebar)
- Select "System" under Keychains (in sidebar)
- Select "Import Items..." from File menu. (Shift-Command-I)
- Select the two .cer files above.
- They should now appear in your list of certificates
- For each certificate: 1) File > Get info 2) Under Trust > When using this certificate, select "Always Trust". 3) Close the Get info window, which will prompt a password save.
- You may need to restart your browser.
- Go to chrome://settings/certificates?search=https
- Click "Authorities"
- Click "Import" and select VA-Internal-S2-RCA1-v1.cer file downloaded above
- Go to about:preferences#privacy, scroll to bottom
- Click "View Certificates"
- Click "Authorities" tab
- Click "Import"
- Import both files downloaded above
- Open settings
- Click "Privacy and Security" in the left sidebar
- Click "Security" in the main section
- Scroll down and click on "Manage certificates" under the Advanced section
- Under the "Intermediate Certificate Authorities", click "Import" and select VA-Internal-S2-ICA1-v1.cer downloaded above
- Under the "Root Certificate Authorities", click "Import" and select VA-Internal-S2-RCA1-v1.cer downloaded above
- You may need to restart your browser (all windows) or your machine in order to for these certs to become active.
You can't test with the VA cert locally using Lando but you can use Lando's self-signed cert. If you need to test the actual cert locally contact the DevOps team to help you setup the vagrant build system to get HTTPS working with VA CA.
To test with Lando's self-signed cert you need to tell your system to trust the Lando Certificate Authority. Instructions are here > https://docs.devwithlando.io/config/security.html
TODO, create upstream PR with sudo trust anchor --store ~/.lando/certs/lndo.site.pem
for Arch Linux
Note: I had to still import that same CA into Chrome.
Go to chrome://settings/certificates?search=https
Click "Authorities"
Import .lando\certs\lndo.site.pem
If you're using ddev
, run mkcert -install
and restart your browser.