diff --git a/cmd/csaf_provider/config.go b/cmd/csaf_provider/config.go
index c048721..88082dd 100644
--- a/cmd/csaf_provider/config.go
+++ b/cmd/csaf_provider/config.go
@@ -23,6 +23,7 @@ type config struct {
UploadSignature bool `toml:"upload_signature"`
PGPURL string `toml:"pgp_url"`
Domain string `toml:"domain"`
+ NoPassphrase bool `toml:"no_passphrase"`
}
type tlp string
diff --git a/cmd/csaf_provider/controller.go b/cmd/csaf_provider/controller.go
index 58e4864..a0ca349 100644
--- a/cmd/csaf_provider/controller.go
+++ b/cmd/csaf_provider/controller.go
@@ -179,7 +179,7 @@ func (c *controller) handleSignature(r *http.Request, data []byte) (string, stri
// Sign ourself
- if passwd := r.FormValue("passphrase"); passwd != "" {
+ if passwd := r.FormValue("passphrase"); !c.cfg.NoPassphrase && passwd != "" {
if key, err = key.Unlock([]byte(passwd)); err != nil {
return "", "", err
}
diff --git a/cmd/csaf_provider/tmpl/index.html b/cmd/csaf_provider/tmpl/index.html
index c4d7add..de980d0 100644
--- a/cmd/csaf_provider/tmpl/index.html
+++ b/cmd/csaf_provider/tmpl/index.html
@@ -30,9 +30,11 @@
{{ else }}
+ {{ if not .Config.NoPassphrase }}
{{ end }}
+ {{ end }}