# HCP Vault Secret with Vault Secret Operator failed to verify certificate

**URL:** <https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878>\
**Category:** HCP Vault Secrets\
**Created:** [October 6, 2023, 2:24pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878 "2023-10-06T14:24:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chprok](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chprok](https://discuss.hashicorp.com/u/chprok)\
**Post date:** [October 6, 2023, 2:24pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878/1 "2023-10-06T14:24:58Z")

</div>

Hello,

I try to synchronise secret from HCP Vault Secret and my kubernetes cluster (openshift 4.13) with the Vault Secret Operator (v0.3.1).

I create my HCPAuth and HCPVaultSecretsApp and I’ve got this logs from vault-secrets-operator-controller-manager pod :

```auto
2023-10-06T05:00:32Z ERROR Get App Secret {"controller": "hcpvaultsecretsapp", "controllerGroup": "secrets.hashicorp.com", "controllerKind": "HCPVaultSecretsApp", "HCPVaultSecretsApp": {"name":"xxx","namespace":"xxx"}, "namespace": "xxx", "name": "xxx", "reconcileID": "xxx", "appName": "xxx", "error": "Get \"https://api.cloud.hashicorp.com:443/secrets/2023-06-13/organizations/xxx/apps/media/open\": Post \"https://auth.idp.hashicorp.com/oauth2/token\": tls: failed to verify certificate: x509: certificate signed by unknown authority"}

```

It’s a bug or i do something wrong ?

---

<div class="post-metadata">

**Author:** ![jonathanfrappier](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jonathanfrappier/32/28004_2.png) [@jonathanfrappier](https://discuss.hashicorp.com/u/jonathanfrappier)\
**Post date:** [October 20, 2023, 1:37pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878/2 "2023-10-20T13:37:15Z")

</div>

Hi @chprok - without seeing the config, its hard to know. I validated this [HCP Vault Secrets with Vault Secrets Operator for Kubernetes | Vault | HashiCorp Developer](https://developer.hashicorp.com/vault/tutorials/hcp-vault-secrets-get-started/kubernetes-vso) last week. It may be a useful guide to setting up your environment.

---

<div class="post-metadata">

**Author:** ![chprok](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chprok](https://discuss.hashicorp.com/u/chprok)\
**Post date:** [October 20, 2023, 1:42pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878/3 "2023-10-20T13:42:19Z")

</div>

Hi @jonathanfrappier

I open an [issue](https://github.com/hashicorp/vault-secrets-operator/issues/412) on the vault-secret-operator github and a PR is embeded into the v0.3.4.

I’m waiting for this release to test it on my environnement.

---

<div class="post-metadata">

**Author:** ![jonathanfrappier](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jonathanfrappier/32/28004_2.png) [@jonathanfrappier](https://discuss.hashicorp.com/u/jonathanfrappier)\
**Post date:** [October 20, 2023, 11:21pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878/4 "2023-10-20T23:21:11Z")

</div>

Awesome - glad its moving along.

---

<div class="post-metadata">

**Author:** ![alexjackson57189](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@alexjackson57189](https://discuss.hashicorp.com/u/alexjackson57189)\
**Post date:** [December 30, 2023, 4:34pm UTC](https://discuss.hashicorp.com/t/hcp-vault-secret-with-vault-secret-operator-failed-to-verify-certificate/58878/5 "2023-12-30T16:34:18Z")

</div>

"Hey chprok! That looks like a certificate verification issue. Make sure your Vault Secret Operator’s trust store is updated or check if there’s a missing CA certificate. Double-check the [Getter APK](https://apkgetter.com/), HCPAuth setup too. Happy debugging!
