cert400/cmd/templates/index.html

74 lines
1.8 KiB
HTML
Raw Normal View History

2024-05-22 10:42:13 +02:00
<!DOCTYPE html>
<html lang="en">
2024-05-22 15:03:26 +02:00
<head>
<title>Hello</title>
<script src="https://unpkg.com/htmx.org@1.9.4/dist/htmx.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
2024-05-23 09:35:33 +02:00
<!-- Licensed under the GPL v3.0 -->
2024-05-22 15:03:26 +02:00
<body>
<p>Hello {{ .UserAgent }}!</p>
<div class="container">
<div id="main">
2024-05-23 09:35:33 +02:00
<b>
<p align="center"><a href="cacert">Download CA certificate</a></p>
</b>
<h1>Certificate requester</h1>
2024-05-22 15:03:26 +02:00
<!-- <h3>Find the source <a href="https://git.bulgariu.xyz/raul/uploader" target="_blank">here!</a></h3> -->
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
2024-05-23 09:35:33 +02:00
Serial Number:
<input type="text" name="formSerNum" value="2024">
<br>
Organization:
<input type="text" name="formOrg" value="Empresa SL">
<br>
Country:
<input type="text" name="formCountry" value="ES">
2024-05-22 15:03:26 +02:00
<br>
2024-05-23 09:35:33 +02:00
Province:
<input type="text" name="formProv" value="Valencia">
<br>
Locality:
<input type="text" name="formLocal" value="Valencia">
<br>
Street Address:
<input type="text" name="formStreet" value="C/Falsa 123">
2024-05-22 15:03:26 +02:00
<br>
2024-05-23 09:35:33 +02:00
Postal code:
<input type="text" name="formPostal" value="46212">
<br>
# of years before expiring:
<input type="text" name="formAge" value="10">
<br>
Certificate Bitsize:
<input type="text" name="formBit" value="3072">
<br>
DNS name:
<input type="text" name="formDNS" value="www.example.com">
<br>
2024-05-22 15:03:26 +02:00
<button id="but">
2024-05-23 09:35:33 +02:00
Request
2024-05-22 15:03:26 +02:00
</button>
</form>
</div>
</div>
</body>
2024-05-22 10:42:13 +02:00
</html>