From 51f41a2298c2bb73335bf1aecf1a7a9d6890f87f Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 30 Mar 2019 16:16:28 +0100 Subject: [PATCH] Fix typo in cryptography backend. (#54634) --- lib/ansible/modules/crypto/openssl_certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/crypto/openssl_certificate.py b/lib/ansible/modules/crypto/openssl_certificate.py index c65eef8f03..b1e84f580a 100644 --- a/lib/ansible/modules/crypto/openssl_certificate.py +++ b/lib/ansible/modules/crypto/openssl_certificate.py @@ -1278,7 +1278,7 @@ class AssertOnlyCertificateCryptography(Certificate): def _validate_invalid_at(): if self.invalid_at[0]: - if (self.get_relative_time_option(self.invalid_at[0], 'invalid_at') > self.cert.not_valid_before) \ + if (self.get_relative_time_option(self.invalid_at[0], 'invalid_at') <= self.cert.not_valid_before) \ or (self.get_relative_time_option(self.invalid_at, 'invalid_at') >= self.cert.not_valid_after): self.message.append( 'Certificate is not invalid for the specified date (%s) - notBefore: %s - notAfter: %s' % (self.invalid_at,