Skip to content

Commit

Permalink
fix: add 1 year to certificate expiry date instead of 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
subnova committed Feb 21, 2024
1 parent ae2fa3b commit 54f55eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/services/charge_station_certificate_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (l *LocalChargeStationCertificateProvider) ProvideCertificate(ctx context.C
SerialNumber: serial,
Subject: csr.Subject,
NotBefore: now,
NotAfter: now.Add(time.Minute),
NotAfter: now.AddDate(1, 0, 0),
BasicConstraintsValid: true,
IsCA: false,
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
Expand Down

0 comments on commit 54f55eb

Please sign in to comment.