|
@ -415,6 +415,33 @@ Construct a new TLSSocket object from existing TCP socket. |
|
|
be added to client hello, and `OCSPResponse` event will be emitted on socket |
|
|
be added to client hello, and `OCSPResponse` event will be emitted on socket |
|
|
before establishing secure communication |
|
|
before establishing secure communication |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## tls.createSecureContext(details) |
|
|
|
|
|
|
|
|
|
|
|
Stability: 0 - Deprecated. Use tls.createSecureContext instead. |
|
|
|
|
|
|
|
|
|
|
|
Creates a credentials object, with the optional details being a |
|
|
|
|
|
dictionary with keys: |
|
|
|
|
|
|
|
|
|
|
|
* `pfx` : A string or buffer holding the PFX or PKCS12 encoded private |
|
|
|
|
|
key, certificate and CA certificates |
|
|
|
|
|
* `key` : A string holding the PEM encoded private key |
|
|
|
|
|
* `passphrase` : A string of passphrase for the private key or pfx |
|
|
|
|
|
* `cert` : A string holding the PEM encoded certificate |
|
|
|
|
|
* `ca` : Either a string or list of strings of PEM encoded CA |
|
|
|
|
|
certificates to trust. |
|
|
|
|
|
* `crl` : Either a string or list of strings of PEM encoded CRLs |
|
|
|
|
|
(Certificate Revocation List) |
|
|
|
|
|
* `ciphers`: A string describing the ciphers to use or exclude. |
|
|
|
|
|
Consult |
|
|
|
|
|
<http://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT> |
|
|
|
|
|
for details on the format. |
|
|
|
|
|
|
|
|
|
|
|
If no 'ca' details are given, then node.js will use the default |
|
|
|
|
|
publicly trusted list of CAs as given in |
|
|
|
|
|
<http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt>. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## tls.createSecurePair([context], [isServer], [requestCert], [rejectUnauthorized]) |
|
|
## tls.createSecurePair([context], [isServer], [requestCert], [rejectUnauthorized]) |
|
|
|
|
|
|
|
|
Stability: 0 - Deprecated. Use tls.TLSSocket instead. |
|
|
Stability: 0 - Deprecated. Use tls.TLSSocket instead. |
|
|