Strip unnecessary prefix of ca names

This commit is contained in:
Jan Dittberner 2022-12-03 11:44:39 +01:00
parent afe7d23c9b
commit bc81ab84cb

View file

@ -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
}