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

Ability to use HTTPS URL with self-signed certificate #77

Open
n8felton opened this issue Oct 31, 2022 · 1 comment
Open

Ability to use HTTPS URL with self-signed certificate #77

n8felton opened this issue Oct 31, 2022 · 1 comment

Comments

@n8felton
Copy link

I'm looking for an option to use a HTTPS URL with a self-signed certificate.

The solution could either ignore SSL warnings all together, or an option to provide a CA bundle to trust.

I was unable to figure out a way to do this with axios_config.

The URL I'm attempting to use is at https://gdmf.apple.com/v2/pmv.

@n8felton n8felton moved this to 📋 Backlog in @n8felton's backlog Nov 4, 2022
@idan
Copy link
Contributor

idan commented Nov 30, 2023

Hi @n8felton!

A little bit of digging around suggests that adding this key to the axios config string should disable selfsigned cert checks:

httpsAgent: new https.Agent({
  rejectUnauthorized: false
})

I'm not sure how you'd supply your own cert bundle but I suspect it's possible, if you check it into the repo maybe:

httpsAgent: new https.Agent({ ca: MY_CA_BUNDLE });

Hopefully that leads to some success!

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