rajanadar / VaultSharp

A comprehensive cross-platform .NET Library for HashiCorp's Vault, a secret management tool
http://rajanadar.github.io/VaultSharp
Apache License 2.0
493 stars 134 forks source link

Error: The request was aborted: Could not create SSL/TLS secure channel #323

Closed tanishagarg-sf closed 2 months ago

tanishagarg-sf commented 1 year ago

Describe the bug A one liner of what the bug is. Error: The request was aborted: Could not create SSL/TLS secure channel 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

konidev20 commented 1 year ago

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.

It's mainly a configuration issue from your end.

tanishagarg-sf commented 1 year ago

Hi @konidev20 This is working via curl command, via curl command using proxy i am able to login/read/write secrets. Still you think this can be an issue ?

konidev20 commented 1 year ago

Have you tested your proxy configuration for the HTTPClient handler?

tanishagarg-sf commented 1 year ago

How can i test it ? Same configuration is used by us to talk with other services we use for which we can connection using proxy only.