diff --git a/lib/internal/crypto/keys.js b/lib/internal/crypto/keys.js index a00563280251856..140f4ad6df7a1d7 100644 --- a/lib/internal/crypto/keys.js +++ b/lib/internal/crypto/keys.js @@ -165,6 +165,7 @@ const [ constructor(type, handle) { super(type, handle); } + get asymmetricKeyType() { return this[kAsymmetricKeyType] || (this[kAsymmetricKeyType] = this[kHandle].getAsymmetricKeyType());