mirror of https://github.com/status-im/consul.git
7839b2d7e0
This test found a bug in the secondary. We were appending the root cert to the PEM, but that cert was already appended. This was failing validation in Vault here: https://github.com/hashicorp/vault/blob/sdk/v0.3.0/sdk/helper/certutil/types.go#L329 Previously this worked because self signed certs have the same SubjectKeyID and AuthorityKeyID. So having the same self-signed cert repeated doesn't fail that check. However with an intermediate that is not self-signed, those values are different, and so we fail the check. A test I added in a previous commit should show that this continues to work with self-signed root certs as well. |
||
---|---|---|
.. | ||
common.go | ||
mock_Provider.go | ||
provider.go | ||
provider_aws.go | ||
provider_aws_test.go | ||
provider_consul.go | ||
provider_consul_config.go | ||
provider_consul_test.go | ||
provider_test.go | ||
provider_vault.go | ||
provider_vault_test.go | ||
testing.go |