1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-12-25 06:11:21 +00:00

Merge remote-tracking branch 'wimfabri/ca_chain' into ca-chain-support

closes #6

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-05-27 10:05:21 +02:00
commit 3dfa21116d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -403,7 +403,7 @@ func revokeCertificateBySerial(serial string) error {
}
func getCACert() (string, error) {
path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca"}, "/")
path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca_chain"}, "/")
cs, err := client.Logical().Read(path)
if err != nil {
return "", errors.New("Unable to read certificate: " + err.Error())