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

Ignore SSL errors for HTTPS Requests #89

Open
harlem88 opened this issue Feb 10, 2025 · 0 comments · May be fixed by #90
Open

Ignore SSL errors for HTTPS Requests #89

harlem88 opened this issue Feb 10, 2025 · 0 comments · May be fixed by #90
Labels
bug Something isn't working

Comments

@harlem88
Copy link
Collaborator

Currently, the ignoreSSLErrors flag of the AstarteDevice constructor affects only the MQTTs connection.
This flag should also affect all internal HTTPS requests of Astarte SDK such as for the Pairing API.

Currently, the Astarte SDK throws an exception on HTTP side:

System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.)
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
   at System.Net.Security.SslStream.SendAuthResetSignal(ReadOnlySpan`1 alert, ExceptionDispatchInfo exception)
   at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
@harlem88 harlem88 added the bug Something isn't working label Feb 10, 2025
@nedimtokic nedimtokic linked a pull request Feb 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant