All cert info should be in UTC always

This commit is contained in:
Joe Julian 2015-06-02 17:49:01 -07:00
parent 9affcca766
commit 161f913522
2 changed files with 5 additions and 2 deletions

View file

@ -39,6 +39,9 @@ import salt.utils
log = logging.getLogger(__name__)
# Always use UTC for certificate info
os.environ['TZ'] = 'UTC'
time.tzset()
def __virtual__():
'''

View file

@ -230,7 +230,7 @@ class TLSAddTestCase(TestCase):
ca_name,
ca_name)
ret = {
'not_after': 1462405161.0,
'not_after': 1462379961.0,
'signature_algorithm': 'sha256WithRSAEncryption',
'extensions': None,
'fingerprint': ('96:72:B3:0A:1D:34:37:05:75:57:44:7E:08:81:A7:09:'
@ -244,7 +244,7 @@ class TLSAddTestCase(TestCase):
'ST': 'Utah',
'emailAddress':
'xyz@pdq.net'},
'not_before': 1430869161.0,
'not_before': 1430843961.0,
'issuer': {
'C': 'US',
'CN': 'localhost',