Joyee Cheung
a7909014f7
tls: implement tls.getCACertificates()
...
To accompany --use-system-ca, this adds a new API that allows
querying various kinds of CA certificates.
- If the first argument `type` is `"default"` or undefined,
it returns the CA certificates that will be used by Node.js
TLS clients by default, which includes the Mozilla CA
if --use-bundled-ca is enabled or --use-openssl-ca is not
enabled, and the system certificates if --use-system-ca
is enabled, and the extra certificates if NODE_EXTRA_CA_CERTS
is used.
- If `type` is `"system"` this returns the system certificates,
regardless of whether --use-system-ca is enabeld or not.
- If `type` is `"bundled"` this is the same as `tls.rootCertificates`
and returns the Mozilla CA certificates.
- If `type` is `"extra"` this returns the certificates parsed
from the path specified by NODE_EXTRA_CA_CERTS.
Drive-by: remove the inaccurate description in `tls.rootCertificates`
about including system certificates, since it in fact does not include
them, and also it is contradicting the previous description about
`tls.rootCertificates` always returning the Mozilla CA store and
staying the same across platforms.
PR-URL: https://github.com/nodejs/node/pull/57107
Reviewed-By: James M Snell <jasnell@gmail.com >
2025-03-06 17:16:27 +00:00
..
2025-03-05 15:27:26 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-09 17:35:54 +00:00
2025-01-09 17:35:54 +00:00
2025-01-08 09:58:33 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-06 10:47:36 -08:00
2025-02-01 02:13:57 +00:00
2025-02-28 10:37:18 +00:00
2025-01-31 12:47:18 +01:00
2025-01-18 19:39:56 +00:00
2025-02-03 03:12:19 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-02-17 19:23:39 -08:00
2025-01-28 15:54:50 +00:00
2025-01-28 15:54:50 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 02:30:27 +00:00
2025-01-25 02:30:27 +00:00
2025-01-25 02:30:27 +00:00
2025-01-25 02:30:27 +00:00
2025-01-25 02:30:27 +00:00
2025-02-27 21:02:10 +00:00
2025-03-01 19:10:59 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-13 12:51:31 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-03-04 11:14:34 +00:00
2025-01-26 17:19:39 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-02-15 09:08:02 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-31 02:07:18 +00:00
2025-01-28 14:00:59 -05:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-13 16:51:34 +00:00
2025-01-25 07:23:11 +00:00
2025-02-14 17:19:20 +00:00
2025-01-25 00:58:32 +00:00
2025-01-30 19:55:18 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-02-10 03:40:31 +00:00
2025-01-25 07:23:11 +00:00
2025-02-15 11:45:13 -08:00
2025-02-23 10:28:22 +00:00
2025-01-10 13:04:14 +01:00
2025-01-25 07:23:11 +00:00
2025-01-08 23:12:27 +00:00
2025-02-24 23:23:32 +00:00
2025-01-25 07:23:09 +00:00
2025-02-24 20:28:56 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-02-25 21:13:03 +00:00
2025-02-15 11:47:31 -08:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-27 00:02:05 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-02-22 09:25:11 +00:00
2025-01-21 15:53:42 -03:00
2025-01-25 01:35:59 +00:00
2025-01-25 07:23:11 +00:00
2025-01-21 15:53:42 -03:00
2025-01-20 06:59:01 -08:00
2025-01-21 15:53:42 -03:00
2025-01-21 15:53:42 -03:00
2025-01-21 15:53:42 -03:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 01:35:59 +00:00
2025-01-25 07:23:11 +00:00
2025-02-25 16:07:49 +00:00
2025-01-25 07:23:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-27 10:35:11 +00:00
2025-01-25 00:58:32 +00:00
2025-01-29 13:50:10 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 01:35:59 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-23 01:07:21 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-24 12:36:23 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-29 14:58:25 +00:00
2025-02-08 13:39:19 +00:00
2025-02-08 13:39:19 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-29 21:55:04 +00:00
2025-01-25 07:23:09 +00:00
2025-01-14 18:24:30 +00:00
2025-01-25 08:32:23 +01:00
2025-01-25 07:23:11 +00:00
2025-01-23 22:44:10 +00:00
2025-01-31 12:47:09 +01:00
2025-03-01 20:43:41 +00:00
2025-01-25 07:23:11 +00:00
2025-03-03 05:54:27 +00:00
2025-03-03 05:54:27 +00:00
2025-03-03 05:54:27 +00:00
2025-02-25 21:42:33 +00:00
2025-02-25 21:42:33 +00:00
2025-01-09 14:06:31 +00:00
2025-02-23 19:40:51 +00:00
2025-01-23 22:44:10 +00:00
2025-01-21 15:53:46 -03:00
2025-01-21 15:53:46 -03:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-22 15:09:00 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-25 16:07:49 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-20 06:12:27 -08:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-12 15:05:44 +00:00
2025-01-25 07:23:09 +00:00
2025-02-21 14:14:02 +00:00
2025-02-21 14:14:02 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-08 12:43:52 +00:00
2025-01-06 10:47:36 -08:00
2025-01-06 10:47:36 -08:00
2025-01-06 10:47:36 -08:00
2025-01-06 10:47:36 -08:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-29 17:01:26 -08:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-02-11 15:24:02 +00:00
2025-01-26 16:41:21 +00:00
2025-01-06 10:47:36 -08:00
2025-01-25 07:23:09 +00:00
2025-01-09 21:12:17 +00:00
2025-01-31 12:56:02 -08:00
2025-01-11 14:19:35 +00:00
2025-01-31 12:56:02 -08:00
2025-01-25 07:23:11 +00:00
2025-01-31 12:56:03 -08:00
2025-02-23 20:31:14 +00:00
2025-01-09 21:12:17 +00:00
2025-02-19 06:34:08 +00:00
2025-01-31 12:56:02 -08:00
2025-01-16 02:32:37 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-02-27 17:43:13 +00:00
2025-02-04 13:58:33 +00:00
2025-02-27 17:43:13 +00:00
2025-02-05 14:33:59 +00:00
2025-02-27 17:43:13 +00:00
2025-01-25 07:23:09 +00:00
2025-01-25 07:23:09 +00:00
2025-01-19 16:56:09 +00:00
2025-02-09 10:38:33 +00:00
2025-02-11 13:32:26 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-03-01 23:54:52 +00:00
2025-02-10 21:09:41 +00:00
2025-01-25 07:23:11 +00:00
2025-02-10 21:09:41 +00:00
2025-01-29 13:50:10 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-31 21:57:59 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-03-03 05:54:27 +00:00
2025-01-25 07:23:11 +00:00
2025-01-28 14:00:59 -05:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-12 20:53:04 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-03-06 17:16:27 +00:00
2025-01-25 00:58:32 +00:00
2025-03-03 05:54:27 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-29 13:50:10 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 00:58:32 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-02-06 01:36:27 +00:00
2025-02-04 03:34:31 +00:00
2025-02-04 04:52:39 +00:00
2025-02-03 13:54:20 -08:00
2025-01-25 07:23:11 +00:00
2025-01-15 13:28:53 +00:00
2025-01-25 07:23:11 +00:00
2025-01-29 09:43:57 +00:00
2025-02-25 08:01:28 -08:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-02-28 09:52:47 -08:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-02-23 14:40:33 +00:00
2025-01-25 07:23:09 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-03-04 17:45:51 +00:00
2025-01-25 07:23:11 +00:00
2025-01-31 12:47:18 +01:00
2025-01-25 07:23:11 +00:00
2025-03-05 03:04:39 +00:00
2025-02-26 09:27:33 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 07:23:09 +00:00
2025-01-06 07:22:27 +00:00
2025-01-06 07:22:27 +00:00
2025-01-25 07:23:11 +00:00
2025-01-25 00:58:32 +00:00
2025-01-24 04:38:49 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-01-25 07:23:11 +00:00
2025-02-10 19:42:20 +00:00
2025-02-08 12:43:53 +00:00
2025-01-25 07:23:11 +00:00
2025-02-08 12:43:53 +00:00
2025-02-10 19:42:20 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00