diff --git a/app/config.py b/app/config.py index a64efdf..a38ae5b 100644 --- a/app/config.py +++ b/app/config.py @@ -28,7 +28,8 @@ def valid_check(self) -> 'CaSettings': if self.enabled: if not self.encryption_key: from cryptography.fernet import Fernet # pylint: disable=import-outside-toplevel - raise ValueError('Env Var ca_encryption_key is missing, use this freshly generated key: ' + Fernet.generate_key().decode()) + print('Env Var ca_encryption_key is missing, use this freshly generated key: ' + Fernet.generate_key().decode()) + exit(1) if self.cert_lifetime.days < 1: raise ValueError('Cert lifetime for internal CA must be at least one day, not: ' + str(self.cert_lifetime)) if self.crl_lifetime.days < 1: