diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 69505a1e5f975a..76b6d4d5ec5c8b 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2721,7 +2721,7 @@ static ParsePublicKeyResult ParsePublicKeyPEM(EVPKeyPointer* pkey, ParsePublicKeyResult ret; - // Try PKCS#8 first. + // Try parsing as a SubjectPublicKeyInfo first. ret = TryParsePublicKey(pkey, bp, "PUBLIC KEY", [](const unsigned char** p, long l) { // NOLINT(runtime/int) return d2i_PUBKEY(nullptr, p, l);