| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1513,6 +1513,11 @@ Verifies the certificate `cert` is issued to `hostname`. | |||
| 1513 | 1513 | Returns {Error} object, populating it with `reason`, `host`, and `cert` on | |
| 1514 | 1514 | failure. On success, returns {undefined}. | |
| 1515 | 1515 | ||
| 1516 | + This function is intended to be used in combination with the | ||
| 1517 | + `checkServerIdentity` option that can be passed to [`tls.connect()`][] and as | ||
| 1518 | + such operates on a [certificate object][]. For other purposes, consider using | ||
| 1519 | + [`x509.checkHost()`][] instead. | ||
| 1520 | + | ||
| 1516 | 1521 | This function can be overwritten by providing an alternative function as the | |
| 1517 | 1522 | `options.checkServerIdentity` option that is passed to `tls.connect()`. The | |
| 1518 | 1523 | overwriting function can call `tls.checkServerIdentity()` of course, to augment | |
@@ -2243,6 +2248,7 @@ added: v11.4.0 | |||
| 2243 | 2248 | [`tls.createServer()`]: #tlscreateserveroptions-secureconnectionlistener | |
| 2244 | 2249 | [`tls.getCiphers()`]: #tlsgetciphers | |
| 2245 | 2250 | [`tls.rootCertificates`]: #tlsrootcertificates | |
| 2251 | + [`x509.checkHost()`]: crypto.md#x509checkhostname-options | ||
| 2246 | 2252 | [asn1.js]: https://www.npmjs.com/package/asn1.js | |
| 2247 | 2253 | [certificate object]: #certificate-object | |
| 2248 | 2254 | [cipher list format]: https://www.openssl.org/docs/man1.1.1/man1/ciphers.html#CIPHER-LIST-FORMAT | |
| Back | FazBrowse Home | New Git URL |
0 commit comments