Skip to content

Commit

Permalink
move call to better spot
Browse files Browse the repository at this point in the history
  • Loading branch information
eikenb committed May 2, 2023
1 parent feab094 commit 58e13d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/connect/ca/provider_vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ func (v *VaultProvider) setupIntermediatePKIPath() error {
"require_cn": false,
})

// enable auto-tidy with tidy_expired_issuers
v.autotidyIssuers(v.config.IntermediatePKIPath)

return err
}

Expand Down Expand Up @@ -617,7 +620,6 @@ func (v *VaultProvider) GenerateLeafSigningCert() (string, error) {
return "", fmt.Errorf("failed to update default intermediate issuer: %w", err)
}
}
v.autotidyIssuers(v.config.IntermediatePKIPath)
return v.ActiveLeafSigningCert()
}

Expand Down

0 comments on commit 58e13d7

Please sign in to comment.