@@ -163,7 +163,9 @@ automatically set as a listener for the [secureConnection][] event. The
163
163
the ` key ` , ` cert ` and ` ca ` options.)
164
164
165
165
- ` key ` : A string or ` Buffer ` containing the private key of the server in
166
- PEM format. (Could be an array of keys). (Required)
166
+ PEM format. To support multiple keys using different algorithms, an array
167
+ can be provided. It can either be a plain array of keys, or an array of
168
+ objects in the format ` {pem: key, passphrase: passphrase} ` . (Required)
167
169
168
170
- ` passphrase ` : A string of passphrase for the private key or pfx.
169
171
@@ -508,7 +510,10 @@ dictionary with keys:
508
510
509
511
* ` pfx ` : A string or buffer holding the PFX or PKCS12 encoded private
510
512
key, certificate and CA certificates
511
- * ` key ` : A string holding the PEM encoded private key
513
+ * ` key ` : A string or ` Buffer ` containing the private key of the server in
514
+ PEM format. To support multiple keys using different algorithms, an array
515
+ can be provided. It can either be a plain array of keys, or an array of
516
+ objects in the format ` {pem: key, passphrase: passphrase} ` . (Required)
512
517
* ` passphrase ` : A string of passphrase for the private key or pfx
513
518
* ` cert ` : A string holding the PEM encoded certificate
514
519
* ` ca ` : Either a string or list of strings of PEM encoded CA
0 commit comments