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

Python3.12: fix CryptographyDeprecationWarning #1597

Merged

Conversation

jbeckerwsi
Copy link
Contributor

Address the following deprecation warnings when using python 3.12

`2024-03-04 10:11:02,506 ¦ py.warnings ¦ WARNING ¦ warnings ¦ _showwarnmsg ¦ 109 ¦ 0 ¦ 0 ¦ c:....\opcua-asyncio\asyncua\crypto\uacrypto.py:334: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to not_valid_after_utc.
if cert.not_valid_after < now:

2024-03-04 10:11:02,507 ¦ py.warnings ¦ WARNING ¦ warnings ¦ _showwarnmsg ¦ 109 ¦ 0 ¦ 0 ¦ c:....\opcua-asyncio\asyncua\crypto\uacrypto.py:337: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to not_valid_before_utc.
if cert.not_valid_before > now:`

@oroulet
Copy link
Member

oroulet commented Mar 10, 2024

thanks. I had tried to fix that without really finding a good solution

@oroulet oroulet merged commit 9074e8c into FreeOpcUa:master Mar 10, 2024
5 checks passed
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 this pull request may close these issues.

2 participants