From 13c5d8efb26b3606ce0fe8a8ac31f0539be58fb1 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 9 Oct 2022 12:02:39 +0200 Subject: [PATCH] tls: add "ca" property to certificate object The objects returned by getPeerCertificate() now have an additional "ca" boolean property that indicates whether the certificate is a Certificate Authority certificate or not. Fixes: https://github.com/nodejs/node/issues/44905 --- doc/api/tls.md | 4 ++++ src/crypto/crypto_common.cc | 6 +++++- src/env_properties.h | 1 + test/parallel/test-tls-peer-certificate.js | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index ac74e559dd0c34..c02ef8d3a406a8 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1173,6 +1173,9 @@ certificate.