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

Getting deprecation warning #6730

Closed
Shnitzelil opened this issue Mar 10, 2024 · 5 comments
Closed

Getting deprecation warning #6730

Shnitzelil opened this issue Mar 10, 2024 · 5 comments
Labels
kind/triage Unclassified issues

Comments

@Shnitzelil
Copy link

Problem Description

mitmproxy\certs.py:111: CryptographyDeprecationWarning: Properties that return a na�ve datetime object have been deprecated. Please switch to not_valid_after_utc.

Steps to reproduce the behavior:

  1. enable sertificates usage

System Information

Mitmproxy: 10.2.3 binary
Python: 3.12.2
OpenSSL: OpenSSL 3.2.1 30 Jan 2024
Platform: Windows-11-10.0.22631-SP0

@Shnitzelil Shnitzelil added the kind/triage Unclassified issues label Mar 10, 2024
@mhils
Copy link
Member

mhils commented Mar 10, 2024 via email

@mhils mhils closed this as completed Mar 11, 2024
@yinsel
Copy link

yinsel commented Apr 9, 2024

This should be fixed in 10.2.4.

On Sun, Mar 10, 2024, 11:56 Kobi @.> wrote: Problem Description mitmproxy\certs.py:111: CryptographyDeprecationWarning: Properties that return a na�ve datetime object have been deprecated. Please switch to not_valid_after_utc. Steps to reproduce the behavior: 1. enable sertificates usage 2. 3. System Information Mitmproxy: 10.2.3 binary Python: 3.12.2 OpenSSL: OpenSSL 3.2.1 30 Jan 2024 Platform: Windows-11-10.0.22631-SP0 — Reply to this email directly, view it on GitHub <#6730>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHY2PU25ASEKJZWWVU4NJ3YXQ35RAVCNFSM6AAAAABEO34EDGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3TONRVGUYDAMI . You are receiving this because you are subscribed to this thread.Message ID: @.>

It seems to still exist:

image

image

@mhils
Copy link
Member

mhils commented Apr 9, 2024

You're using an outdated cryptography version.

@yinsel
Copy link

yinsel commented Apr 9, 2024

您使用的是过时的加密版本。

The version of my cryptography installation is 42.0.5. When I changed the version to below 42.0, the warning disappeared

image

@mhils
Copy link
Member

mhils commented Apr 9, 2024

Thanks. It looks like we didn't fix this properly for Python < 3.12, #6790 should take care of it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/triage Unclassified issues
Projects
None yet
Development

No branches or pull requests

3 participants