Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add config file option to read CA cert from file #557

Open
sseide opened this issue Jan 31, 2024 · 0 comments
Open

Feature: add config file option to read CA cert from file #557

sseide opened this issue Jan 31, 2024 · 0 comments

Comments

@sseide
Copy link
Collaborator

sseide commented Jan 31, 2024

Currently setting extra CA certs is possible only in the ollowing ways:

  • adding certificate directly as one-liner inside the config file or as env var
  • for single connections completly configured by environment variables a file name can be given

Improve RC to add more possiblities to read a custom CA cert from file too:

  • add json config file parameter to read cert from file before giving the tls object to "ioredis" constructor. Somethig like
    "tls": {
       "caCertFile": "/data/my-ca-cert.pem"
       ...
    }
    
  • use cert file read from env var for all connections(?)
  • add reference to NodeJS env var: NODE_EXTRA_CA_CERTS to the documentation as alternative:
    https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file

The last to point - overlap? Only one needed? Check neccessary.

Issue created from #554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant