Merge pull request #306 from dod-ccpo/crl-globbing

only grab CRL extensions from CRL directory
This commit is contained in:
dandds 2018-09-19 15:21:49 -04:00 committed by GitHub
commit b8f11dd227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ def make_redis(config):
def make_crl_validator(app): def make_crl_validator(app):
crl_locations = [] crl_locations = []
for filename in pathlib.Path(app.config["CRL_DIRECTORY"]).glob("*"): for filename in pathlib.Path(app.config["CRL_DIRECTORY"]).glob("*.crl"):
crl_locations.append(filename.absolute()) crl_locations.append(filename.absolute())
app.crl_cache = CRLCache(app.config["CA_CHAIN"], crl_locations, logger=app.logger) app.crl_cache = CRLCache(app.config["CA_CHAIN"], crl_locations, logger=app.logger)