Renaming PUBLIC_CA to PUBLIC_CA_AUTHORITY_NAMES

This commit is contained in:
sayali 2020-08-10 18:06:45 -07:00 committed by Hossein Shafagh
parent 25125f3257
commit d7d483fa9b
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def dates(data):
# Allow no more than PUBLIC_CA_MAX_VALIDITY_DAYS (Default: 397) days of validity # Allow no more than PUBLIC_CA_MAX_VALIDITY_DAYS (Default: 397) days of validity
# for certs issued by public CA # for certs issued by public CA
# The list of public issuers can be managed through a config named PUBLIC_CA # The list of public issuers can be managed through a config named PUBLIC_CA
public_CA = current_app.config.get("PUBLIC_CA", []) public_CA = current_app.config.get("PUBLIC_CA_AUTHORITY_NAMES", [])
if data["authority"].name.lower() in [ca.lower() for ca in public_CA]: if data["authority"].name.lower() in [ca.lower() for ca in public_CA]:
max_validity_days = current_app.config.get("PUBLIC_CA_MAX_VALIDITY_DAYS", 397) max_validity_days = current_app.config.get("PUBLIC_CA_MAX_VALIDITY_DAYS", 397)
if ( if (