Gatekeeper/templates/generate.html.twig

16 lines
761 B
Twig
Raw Normal View History

2022-11-27 00:04:34 +01:00
{% extends 'base.html.twig' %}
{% block body %}
<script src="{{ files_url }}/js/keygen.js"></script>
<script type="module">
import { OpenSSL } from {{ files_url }}/js/browser.openssl.js';
keygenJS(OpenSSL);
</script>
<br><br>
<form action="/generate/spkac-endpoint.php" method="post" style="display: inline;">
<b><label>Username:</label></b><br><input name="username" required pattern="([A-z0-9]){4,16}"><br>
<input type="submit" value="Generate key" onclick="myagent.play('Print'); myagent.play('GetTechy');"><a href="/" style="display: inline; text-decoration: none;"><button type="button" class="button">Authenticate</button></a><br>
<keygen name="key" keytype="rsa" -keygenjs-pkeyopts="rsa_keygen_bits:4096">
</form>
<br><br>
{% endblock %}