invalidate expired primary keys
This commit is contained in:
parent
d64665e5fe
commit
344294659e
|
@ -358,7 +358,7 @@ Key.prototype.getEncryptionKeyPacket = function() {
|
||||||
}
|
}
|
||||||
// if no valid subkey for encryption, evaluate primary key
|
// if no valid subkey for encryption, evaluate primary key
|
||||||
var primaryUser = this.getPrimaryUser();
|
var primaryUser = this.getPrimaryUser();
|
||||||
if (primaryUser &&
|
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired &&
|
||||||
isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) {
|
isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) {
|
||||||
return this.primaryKey;
|
return this.primaryKey;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user