bunkerity / bunkerity/bunkerweb

[BUG] Let's Encrypt page logs CryptographyDeprecationWarning and shows certificate dates off by the local offset

Open
#3,839 2 comments 0 reactions 1 assignee Claimed by @TheophileDiot View on GitHub
bug next minor ui
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.