-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
An error occurred while sending the request. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure. #321
Comments
Hey @tanishagarg-sf, I see that the remote certificate validation is failing in the HTTP Client being used by the VaultSharp library. The error is This usually occurs when the server's certificate is not in the trust store of the client machine or if the server certificate is invalid. Request you provide more information about the vault server setup: PS: I experienced the same issue when I did not have the Server CA or cert installed in the trust store of my client application host. I also experienced this issue when the certificate of the server had expired. Thanks, |
Hi @konidev20 After this, i am seeing this error, vaultsharp.core.vaultapiexception {"errors":["tls connection required"]}, if you want i can paste details here as well. Thanks! |
Hey @tanishagarg-sf, It looks like a configuration issue. I will try to support you on StackOverflow. Request @rajanadar to close this issue. |
Sure @konidev20 Please help this second issue as well along, this one of my friend raised as i was not able to post. Thanks! |
Hey @tanishagarg-sf , Since your connection is going through a proxy. Have you checked if the connection between the proxy, I reckon the TLS connection is being terminated on the proxy. Ideally, from the proxy there must be another TLS connection to the Vault Server. I couldn't answer on StackOverflow. |
Describe the bug
A one liner of what the bug is.
Error: ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
VaultSharp Version
The version of VaultSharp package being used
VaultSharp.1.4.0.1
Vault Version
The version of Vault server being used
Does this work with Vault CLI?
Yes/No
Yes using curl commands
Any additional info
Helpful info
The text was updated successfully, but these errors were encountered: