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

How to setup got using env variables to use self-signed certificates? #2354

Open
ievgennaida opened this issue May 31, 2024 · 1 comment
Open

Comments

@ievgennaida
Copy link

ievgennaida commented May 31, 2024

What would you like to discuss?

How to configure latest GOT using the env variables to respect self-signed certifies?
For me it's looks like next are completely ignored:

    NODE_OPTION: --use-openssl-ca
    NODE_EXTRA_CA_CERTS: /etc/ssl/certs/ca-certificates.crt
    # NODE_TLS_REJECT_UNAUTHORIZED: 0

CERTS are installed in the container:


COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

Error:
UNABLE_TO_GET_ISSUER_CERT

Would appreciate any suggestions.

@sindresorhus
Copy link
Owner

Refer to the Node.js docs for this. Got uses the built-in http module.

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

No branches or pull requests

2 participants