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

FIX error AttributeError: '_Certificate' object has no attribute 'not… #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vBlackOut
Copy link

@vBlackOut vBlackOut commented Jan 23, 2025

ERROR : AttributeError: '_Certificate' object has no attribute 'not_valid_after_utc'. Did you mean: 'not_valid_after'?

environment : Python 3.10 (not have that error on python 3.12)
cryptography==44.0.0
requests==2.32.3

@vog
Copy link
Member

vog commented Jan 23, 2025

Thanks for reporting. Alas, we can't accept this pull request, as it essentially reverts #52, which we introduced for a good reason, see:

Moreover, the not_valid_after_utc property still does exist in the Cryptography library version 44.0.0:

Our internal tests also show no failure at all.

@vBlackOut Are you sure that your Python 3.10 setup (and not just your Python 3.12 setup) does have cryptography==44.0.0?

I'm asking because the most likely reason for your error message is that your Python 3.10 setup has a cryptography version before 42.0.0, i.e. 41 or older.

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