bunkerity / bunkerity/bunkerweb
[BUG] Let's Encrypt page logs CryptographyDeprecationWarning and shows certificate dates off by the local offset
- Dominant language
- Python
- Stars
- 11k
- Forks
- 642
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 42
Description
### What happened?
Noticed this error in the UI.logs
/usr/share/bunkerweb/core/letsencrypt/ui/blueprints/letsencrypt.py:208: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to not_valid_before_utc.
cert_info["valid_from"] = cert.not_valid_before.astimezone().isoformat()
/usr/share/bunkerweb/core/letsencrypt/ui/blueprints/letsencrypt.py:209: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to not_valid_after_utc.
cert_info["valid_to"] = cert.not_valid_after.astimezone().isoformat()
### How to reproduce?
Unsure
### Configuration file(s) (yaml or .env)
```YAML
```
### Relevant log output
```shell
```
### BunkerWeb version
1.6.14
### What integration are you using?
Docker
### Linux distribution (if applicable)
_No response_
### Removed private data
- [x] I have removed all private data from the configuration file and the logs
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.