mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
<!--
|
|
This file is Free Software under the Apache-2.0 License
|
|
without warranty, see README.md and LICENSES/Apache-2.0.txt for details.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
|
|
Software-Engineering: 2021 Intevation GmbH <https://intevation.de>
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta description="CSAF-Provider - CSAF upload">
|
|
<title>CSAF-Provider - CSAF upload</title>
|
|
</head>
|
|
<body>
|
|
<h1>CSAF-Provider - CSAF upload</h1>
|
|
<form action="/cgi-bin/csaf_provider.go/upload" method="post" enctype="multipart/form-data">
|
|
<fieldset>
|
|
<legend>Select your CSAF file</legend>
|
|
<label for="csaf">CSAF file:</label>
|
|
<input name="csaf" id="csaf" type="file" size="50" accept="application/json" required="required">
|
|
<br>
|
|
{{ if eq (len .Config.TLPs) 1 }}
|
|
<input type="hidden" value="{{ index .Config.TLPs 0 }}" id="tlp" name="tlp">
|
|
{{ else }}
|
|
<label for="tlp">TLP:</label>
|
|
<select name="tlp" id="tlp">
|
|
{{ range .Config.TLPs }}
|
|
<option value="{{ . }}">{{ . }}</option>
|
|
{{ end }}
|
|
{{ end }}
|
|
</select>
|
|
<br>
|
|
{{ if .Config.UploadSignature }}
|
|
<label for="signature">Signature:</label>
|
|
<br>
|
|
<textarea name="signature" id="signature" required="required" cols="65" rows="20"
|
|
placeholder="Insert ASCII armored signature here ..."></textarea>
|
|
{{ else }}
|
|
{{ if not .Config.NoPassphrase }}
|
|
<label for="passphrase">Key passphrase:</label>
|
|
<input name="passphrase" type="password" id="passphrase">
|
|
{{ end }}
|
|
{{ end }}
|
|
<br>
|
|
<input type="submit" value="Upload">
|
|
</fieldset>
|
|
</form>
|
|
</body>
|
|
</html>
|