func (le *LetsEncrypt) CheckRenewal(cert *x509.Certificate, days int) bool {
	d := time.Duration(days) * 24 * time.Hour
	renewAfter := cert.NotAfter.Add(-1 * d).Unix()

	return renewAfter > internal.TimeNow().Unix()
}
// CheckRenewal will check if the renewal date of the given certificate is met. This is the expiry-date of the certificate
// minus a number of days (default 30).
CheckRenewal will check if the renewal date of the given certificate is met. This is the expiry-date of the certificate
minus a number of days (default 30).
// CheckRenewal will check if the renewal date of the given certificate is met . This is the expiry - date of the certificate // minus a number of days ( default 30 ) .
func (le *LetsEncrypt) CheckRenewal(cert *x509.Certificate, days int) bool {
	d := time.Duration(days) * 24 * time.Hour
	renewAfter := cert.NotAfter.Add(-1 * d).Unix()
	return renewAfter > internal.TimeNow().Unix()
}
func ( le * LetsEncrypt ) CheckRenewal ( cert * x509 . Certificate , days int ) bool { d := time . Duration ( days ) * 24 * time . Hour renewAfter := cert . NotAfter . Add ( - 1 * d ) . Unix ( ) return renewAfter > internal . TimeNow ( ) . Unix ( ) }
CheckRenewal will check if the renewal date of the given certificate is met.
CheckRenewal will check if the renewal date of the given certificate is met .