Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
- acme_client: ^1.2.0
- basic_utils: ^5.6.1
- collection: ^1.18.0
- lints: ^2.1.1
- test: ^1.24.4
  • Loading branch information
gmpassos committed Aug 1, 2023
1 parent f138576 commit 947bd82
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.2.1

- acme_client: ^1.2.0
- basic_utils: ^5.6.1
- collection: ^1.18.0
- lints: ^2.1.1
- test: ^1.24.4

## 1.2.0

- `LetsEncrypt`:
Expand Down
9 changes: 7 additions & 2 deletions lib/src/certs_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ abstract class CertificatesHandler {

var certificate = X509Utils.x509CertificateFromPem(pemList.first);

var notBefore = certificate.validity.notBefore;
var notAfter = certificate.validity.notAfter;
var tbsCertificateValidity = certificate.tbsCertificate?.validity;
if (tbsCertificateValidity == null) {
return false;
}

var notBefore = tbsCertificateValidity.notBefore;
var notAfter = tbsCertificateValidity.notAfter;

var now = DateTime.now();

Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shelf_letsencrypt
description: Let's Encrypt support for the shelf package (free and automatic HTTPS certificate support).
version: 1.2.0
version: 1.2.1
homepage: https://github.com/gmpassos/shelf_letsencrypt

environment:
Expand All @@ -9,12 +9,12 @@ environment:
dependencies:
path: ^1.8.3
shelf: ^1.4.1
acme_client: ^1.1.0
basic_utils: ^3.9.4
acme_client: ^1.2.0
basic_utils: ^5.6.1
coverage: ^1.6.3
collection: ^1.17.1
collection: ^1.18.0

dev_dependencies:
lints: ^2.1.0
test: ^1.24.1
lints: ^2.1.1
test: ^1.24.4
dependency_validator: ^3.2.2

0 comments on commit 947bd82

Please sign in to comment.