Daniel Nephin 7839b2d7e0 ca: add a test that uses an intermediate CA as the primary CA
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.
2022-02-02 13:41:35 -05:00
..
2022-01-20 10:46:23 -06:00
2021-11-16 12:04:01 -06:00
2022-01-20 10:46:23 -06:00
2022-01-20 10:46:23 -06:00
2021-11-16 12:04:01 -06:00
2022-01-22 14:47:59 -05:00
2022-01-20 10:46:23 -06:00
2022-02-02 12:07:31 -05:00
2022-01-26 17:21:45 -05:00
2021-11-16 12:04:01 -06:00
2022-01-20 10:46:23 -06:00
2022-01-22 14:47:59 -05:00
2021-11-16 12:04:01 -06:00
2021-11-16 12:04:01 -06:00
2022-01-20 10:46:23 -06:00
2021-11-16 12:04:01 -06:00
2021-11-16 12:04:01 -06:00