Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP NotBefore should use UTC time #124

Open
fajo-de opened this issue Mar 18, 2023 · 1 comment · May be fixed by #143
Open

OTP NotBefore should use UTC time #124

fajo-de opened this issue Mar 18, 2023 · 1 comment · May be fixed by #143

Comments

@fajo-de
Copy link

fajo-de commented Mar 18, 2023

When a user adds an OTP token, the application will set NotBefore on the token. If the server running MoKey 6.3 has a time zone other than UTC configured it will cause the wrong start date/time to be set in IPA.

This most probably is caused by MoKey using time.Now() instead of time.Now().UTC() when setting the start time.

@fajo-de
Copy link
Author

fajo-de commented Mar 19, 2023

As a workaround simply add the below to the service config /etc/default/mokey:

TZ=UTC

artem-sidorenko added a commit to artem-forks/mokey that referenced this issue Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant