1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-11-09 08:40:04 +00:00

write complete ca chain as ca

This commit is contained in:
Wim Fabri 2018-01-30 15:06:56 +01:00
parent 06a6e462da
commit 0922564882

View file

@ -401,7 +401,7 @@ func revokeCertificateBySerial(serial string) error {
} }
func getCACert() (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) cs, err := client.Logical().Read(path)
if err != nil { if err != nil {
return "", errors.New("Unable to read certificate: " + err.Error()) return "", errors.New("Unable to read certificate: " + err.Error())