You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When creating a CRL with the x509_v2 modules and having a system timezone other than UTC, last_update and next_update are set wrong (they are set via datetime.today instead of datetime.utcnow / datetime.now(tz=timezone.utc).
Setup
irrelevant
Steps to Reproduce the behavior
set system timezone to non-UTC
create CRL with salt-call x509.create_crl [...] path=$(pwd)/crl.pem
salt-call x509.read_crl $(pwd)/crl.pem
Expected behavior last_update shows current time, next_update current time + days_valid
Screenshots last_update shows current time + UTC offset, same for next_update
Versions Report
present in all release branches and master
Description
When creating a CRL with the
x509_v2
modules and having a system timezone other than UTC,last_update
andnext_update
are set wrong (they are set viadatetime.today
instead ofdatetime.utcnow
/datetime.now(tz=timezone.utc)
.Setup
irrelevant
Steps to Reproduce the behavior
salt-call x509.create_crl [...] path=$(pwd)/crl.pem
salt-call x509.read_crl $(pwd)/crl.pem
Expected behavior
last_update
shows current time,next_update
current time +days_valid
Screenshots
last_update
shows current time + UTC offset, same fornext_update
Versions Report
present in all release branches and master
Additional context
Not my own finding, stumbled over a report here: https://groups.google.com/g/salt-users/c/IUUflZz7daQ
The text was updated successfully, but these errors were encountered: