summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-12-20 00:11:57 +0100
committerTobias Nießen <tniessen@tnie.de>2018-12-24 14:50:25 +0100
commit8f300bc8a74ba236aa04536d66cfdfa448843012 (patch)
treed3ed1e617377559fb4e456a6ba5cf00b31861603 /doc
parent823d86c47ce15fba8875fcebd412593b02aab362 (diff)
downloadandroid-node-v8-8f300bc8a74ba236aa04536d66cfdfa448843012.tar.gz
android-node-v8-8f300bc8a74ba236aa04536d66cfdfa448843012.tar.bz2
android-node-v8-8f300bc8a74ba236aa04536d66cfdfa448843012.zip
crypto: always accept certificates as public keys
PR-URL: https://github.com/nodejs/node/pull/24234 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/crypto.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md
index 017eb91e67..fc1e2ae70c 100644
--- a/doc/api/crypto.md
+++ b/doc/api/crypto.md
@@ -1831,6 +1831,8 @@ Creates and returns a new key object containing a public key. If `key` is a
string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`
must be an object with the properties described above.
+If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
+
### crypto.createSecretKey(key)
<!-- YAML
added: REPLACEME