lemur/lemur/plugins
sirferl 571c8bf42d
Error when validity_end date is empty #2905
this lines of code (114ff) in threw an error, when the validity_end date was empty:

if options.get("validity_end") > arrow.utcnow().shift(years=2):
raise Exception(
"Verisign issued certificates cannot exceed two years in validity"
)

Actually, they are not needed, because immidiately following is a check for an empty validity_end and for the length of the entered period.
When I commented it out for testing, the error was gone and everything worked as expected.
2020-02-13 07:38:04 +01:00
..
base Black lint all the things 2019-05-16 07:57:02 -07:00
bases Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_acme ensuring that "3" is set as an integer instead of a string 2020-02-04 18:23:17 -08:00
lemur_adcs Fixed an error 2020-01-27 11:04:49 +01:00
lemur_atlas Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_atlas_redis atlas redis plugin typo cleanup and better exception handling 2019-11-06 10:42:59 -08:00
lemur_aws improving string formatting to avoid dangling white spaces and new lines 2020-01-16 13:45:13 -08:00
lemur_cfssl handled cfssl-key type error 2020-01-09 15:16:19 +02:00
lemur_cryptography Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_csr Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_digicert # possibility to default to a SIGNING_ALGORITHM for a given profile 2020-01-15 16:19:48 -08:00
lemur_email Improved messaging to point out to the Auto Rotate option for certificate issuance and renewal. 2020-01-08 14:42:16 -08:00
lemur_jks Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_kubernetes Fixed TLS secret format ( #2913 ) 2020-02-13 07:35:35 +01:00
lemur_openssl Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_sftp remove trailing whitespace 2019-12-27 13:25:03 -05:00
lemur_slack Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_statsd Black lint all the things 2019-05-16 07:57:02 -07:00
lemur_vault_dest fixed lint error 2020-01-13 23:09:58 +02:00
lemur_verisign Error when validity_end date is empty #2905 2020-02-13 07:38:04 +01:00
__init__.py Pleasing the PEP8 gods 2015-07-21 13:06:13 -07:00
service.py Addressing comments. Updating copyrights. Added function to determine authorative name server 2018-05-29 10:23:01 -07:00
utils.py Black lint all the things 2019-05-16 07:57:02 -07:00
views.py Black lint all the things 2019-05-16 07:57:02 -07:00