This adds a previous version of the CRL sync functionality back to the repo, with some small adjustments. We now grab the CRLs directly from their DISA URLs. The CRL sync is handled by a kubernetes cronjob that sync the files to a persistent volume that is mounted into each Flask app container.
11 lines
251 B
Bash
Executable File
11 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# script/sync-crls: update the DOD CRLs and place them where authnid expects them
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
mkdir -p crl-tmp crls
|
|
pipenv run python ./atst/domain/authnid/crl/util.py crl-tmp crls
|
|
cp -r crl-tmp/* crls/
|
|
rm -rf crl-tmp
|