Merge pull request #1054 from ndjones/patch-1

Update iam_vault.go
This commit is contained in:
Ben McClelland
2025-02-03 09:09:44 -08:00
committed by GitHub
+1 -1
View File
@@ -47,7 +47,7 @@ func NewVaultIAMService(rootAcc Account, endpoint, secretStoragePath, mountPath,
tls.ServerCertificate.FromBytes = []byte(serverCert)
if clientCert != "" {
if clientCertKey == "" {
return nil, fmt.Errorf("client certificate and client certificate should both be specified")
return nil, fmt.Errorf("client certificate and client certificate key should both be specified")
}
tls.ClientCertificate.FromBytes = []byte(clientCert)