lifecycleion 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,13 @@ interface NodeAdapterConfig {
27
27
  key: string | Buffer;
28
28
  ca?: string | Buffer | Array<string | Buffer>;
29
29
  };
30
+ /**
31
+ * Trusted CA certificate(s) for verifying the server's TLS certificate.
32
+ * Use this when connecting to internal services that use a private CA not
33
+ * in the system trust store. Accepts PEM string, Buffer, or an array of
34
+ * either. Does not require a client certificate — use `mtls` for that.
35
+ */
36
+ ca?: string | Buffer | Array<string | Buffer>;
30
37
  /**
31
38
  * Set to false to accept self-signed certificates in dev/test environments.
32
39
  * Defaults to true (Node.js default — rejects invalid certs).
@@ -27,6 +27,13 @@ interface NodeAdapterConfig {
27
27
  key: string | Buffer;
28
28
  ca?: string | Buffer | Array<string | Buffer>;
29
29
  };
30
+ /**
31
+ * Trusted CA certificate(s) for verifying the server's TLS certificate.
32
+ * Use this when connecting to internal services that use a private CA not
33
+ * in the system trust store. Accepts PEM string, Buffer, or an array of
34
+ * either. Does not require a client certificate — use `mtls` for that.
35
+ */
36
+ ca?: string | Buffer | Array<string | Buffer>;
30
37
  /**
31
38
  * Set to false to accept self-signed certificates in dev/test environments.
32
39
  * Defaults to true (Node.js default — rejects invalid certs).
@@ -457,6 +457,9 @@ var NodeAdapter = class {
457
457
  }
458
458
  if (isHTTPS) {
459
459
  const httpsOptions = options;
460
+ if (this._config.ca) {
461
+ httpsOptions.ca = this._config.ca;
462
+ }
460
463
  if (this._config.mtls) {
461
464
  httpsOptions.cert = this._config.mtls.cert;
462
465
  httpsOptions.key = this._config.mtls.key;