doc: use correct tls certificate property name
Docs referred to an `issuer` property being optionally present, when it should have referred to the `issuerCertificate` property. PR-URL: https://github.com/nodejs/node/pull/10389 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
ea72331afc
commit
f9665280a4
@ -583,13 +583,16 @@ For Example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`
|
|||||||
added: v0.11.4
|
added: v0.11.4
|
||||||
-->
|
-->
|
||||||
|
|
||||||
* `detailed` {boolean} Specify `true` to request that the full certificate
|
* `detailed` {boolean} Include the full certificate chain if `true`, otherwise
|
||||||
chain with the `issuer` property be returned; `false` to return only the
|
include just the peer's certificate.
|
||||||
top certificate without the `issuer` property.
|
|
||||||
|
|
||||||
Returns an object representing the peer's certificate. The returned object has
|
Returns an object representing the peer's certificate. The returned object has
|
||||||
some properties corresponding to the fields of the certificate.
|
some properties corresponding to the fields of the certificate.
|
||||||
|
|
||||||
|
If the full certificate chain was requested, each certificate will include a
|
||||||
|
`issuerCertificate` property containing an object representing its issuer's
|
||||||
|
certificate.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
@ -600,15 +603,15 @@ For example:
|
|||||||
O: 'node.js',
|
O: 'node.js',
|
||||||
OU: 'Test TLS Certificate',
|
OU: 'Test TLS Certificate',
|
||||||
CN: 'localhost' },
|
CN: 'localhost' },
|
||||||
issuerInfo:
|
issuer:
|
||||||
{ C: 'UK',
|
{ C: 'UK',
|
||||||
ST: 'Acknack Ltd',
|
ST: 'Acknack Ltd',
|
||||||
L: 'Rhys Jones',
|
L: 'Rhys Jones',
|
||||||
O: 'node.js',
|
O: 'node.js',
|
||||||
OU: 'Test TLS Certificate',
|
OU: 'Test TLS Certificate',
|
||||||
CN: 'localhost' },
|
CN: 'localhost' },
|
||||||
issuer:
|
issuerCertificate:
|
||||||
{ ... another certificate ... },
|
{ ... another certificate, possibly with a .issuerCertificate ... },
|
||||||
raw: < RAW DER buffer >,
|
raw: < RAW DER buffer >,
|
||||||
valid_from: 'Nov 11 09:52:22 2009 GMT',
|
valid_from: 'Nov 11 09:52:22 2009 GMT',
|
||||||
valid_to: 'Nov 6 09:52:22 2029 GMT',
|
valid_to: 'Nov 6 09:52:22 2029 GMT',
|
||||||
@ -616,8 +619,7 @@ For example:
|
|||||||
serialNumber: 'B9B0D332A1AA5635' }
|
serialNumber: 'B9B0D332A1AA5635' }
|
||||||
```
|
```
|
||||||
|
|
||||||
If the peer does not provide a certificate, `null` or an empty object will be
|
If the peer does not provide a certificate, an empty object will be returned.
|
||||||
returned.
|
|
||||||
|
|
||||||
### tlsSocket.getProtocol()
|
### tlsSocket.getProtocol()
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
|
Loading…
x
Reference in New Issue
Block a user