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:
parent
06a6e462da
commit
0922564882
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue