From 944f67e402a820d2ca4ff330c48dbeb5cb3aa60b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 5 Apr 2021 14:47:53 +0200 Subject: [PATCH] Fix: Looks like a self-signature is valid from its creation Signed-off-by: Knut Ahlers --- gpg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpg.go b/gpg.go index 3450ed6..a404110 100644 --- a/gpg.go +++ b/gpg.go @@ -70,7 +70,7 @@ func processKey(ctx context.Context, key string) (string, mondash.Status) { logger.Debugf("%s %#v", n, id) if id.SelfSignature.KeyLifetimeSecs != nil { - idSelfSigExpiry := e.PrimaryKey.CreationTime.Add(time.Duration(*id.SelfSignature.KeyLifetimeSecs) * time.Second) + idSelfSigExpiry := id.SelfSignature.CreationTime.Add(time.Duration(*id.SelfSignature.KeyLifetimeSecs) * time.Second) logger.WithField("id", n).Debugf("Selfsig: Identity expires: %s", idSelfSigExpiry) if s := checkExpiry(idSelfSigExpiry); s != mondash.StatusOK {