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
488 stars 130 forks source link

vaultsharp.core.vaultapiexception {"errors":["tls connection required"]} #322

Closed tanishagarg-sf closed 1 week ago

tanishagarg-sf commented 1 year ago

Describe the bug A one liner of what the bug is. vaultsharp.core.vaultapiexception {"errors":["tls connection required"]}

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

Exception Details/Stack Trace/Error Message Error message, stack trace you see System.AggregateException: One or more errors occurred. ---> VaultSharp.Core.VaultApiException: {"errors":["tls connection required"]}

Any additional info

.NET version is 4.6.2

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.