Strip unnecessary prefix of ca names
This commit is contained in:
parent
afe7d23c9b
commit
bc81ab84cb
1 changed files with 2 additions and 2 deletions
|
@ -156,14 +156,14 @@ func configureRepositories(
|
|||
result := make(map[string]*revoking.X509Revoking)
|
||||
|
||||
for _, name := range caConfig.RootCAs() {
|
||||
result[fmt.Sprintf("root-%s", name)], err = buildX509Revoking(caConfig, name, logger)
|
||||
result[name], err = buildX509Revoking(caConfig, name, logger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
for _, name := range caConfig.SubordinateCAs() {
|
||||
result[fmt.Sprintf("sub-%s", name)], err = buildX509Revoking(caConfig, name, logger)
|
||||
result[name], err = buildX509Revoking(caConfig, name, logger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue