only grab CRL extensions from CRL directory

This commit is contained in:
dandds 2018-09-19 14:21:55 -04:00
parent 21c724314f
commit f3f1dee7cf

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)