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

Self-signed certificates #468

Closed
i2z1 opened this issue Apr 26, 2024 · 1 comment
Closed

Self-signed certificates #468

i2z1 opened this issue Apr 26, 2024 · 1 comment

Comments

@i2z1
Copy link

i2z1 commented Apr 26, 2024

While testing request to my service with self-signed certificate (fot testing purposes only!) I've got this error

Caused by error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK: [api-key.***.com] SSL certificate problem: self-signed certificate in certificate chain

Is it able to pass via httr2 a custom parameter to underlying curl, so it can ignore self-signed certificates?
It seems usefull for testing purpose.

@hadley
Copy link
Member

hadley commented Apr 28, 2024

Yes, you can use req_options(): https://httr2.r-lib.org/reference/req_options.html

@hadley hadley closed this as completed Apr 28, 2024
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