From 390e050ae0cdfc553214a4f1546f0ebad926c055 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Fri, 30 Nov 2018 11:20:55 -0800 Subject: [PATCH] tls: support "BEGIN TRUSTED CERTIFICATE" for ca: Support the same PEM certificate formats for the ca: option to tls.createSecureContext() that are supported by openssl when loading a CAfile. Fixes: https://github.com/nodejs/node/issues/24761 PR-URL: https://github.com/nodejs/node/pull/24733 Reviewed-By: Anna Henningsen Reviewed-By: Ben Noordhuis --- doc/api/tls.md | 7 +++++-- src/node_crypto.cc | 2 +- test/parallel/test-tls-client-auth.js | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 6a58a6b15e7c69..80d23ddb6fb69a 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1054,6 +1054,9 @@ argument.