diff --git a/cmd/tuf/server/main.go b/cmd/tuf/server/main.go index 655fb7272..3574da579 100644 --- a/cmd/tuf/server/main.go +++ b/cmd/tuf/server/main.go @@ -93,7 +93,8 @@ func main() { } for k, v := range certFiles { logging.FromContext(ctx).Infof("Got tsa cert file %s", k) - files[k] = v + trimmedCert := strings.TrimSpace(string(v)) + files[k] = []byte(trimmedCert) } } else { files[file.Name()] = fileBytes