mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-11-09 08:40:04 +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:
commit
3dfa21116d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue