]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/pages/account/certs/RequestCertificate.templ
upd: rename package name and all references to it
[gigi.git] / src / club / wpia / gigi / pages / account / certs / RequestCertificate.templ
diff --git a/src/club/wpia/gigi/pages/account/certs/RequestCertificate.templ b/src/club/wpia/gigi/pages/account/certs/RequestCertificate.templ
new file mode 100644 (file)
index 0000000..8cd1daa
--- /dev/null
@@ -0,0 +1,49 @@
+<p><?=_SomeCA offers two ways to create a certificate.?> 
+<?=_One is to paste a certificate signing request (CSR) created from an existing or newly created private key.?> <?=_ If you do not know what a CSR is or how to create one take a look at the !'<a href="https://someca.de/FAQ/CSR">'FAQ!'</a>'.?> 
+<?=_As an alternative you can generate the private key inside your browser and export it once the certificate has been issued.?></p>
+<form method="post">
+<table class="table">
+  <thead>
+  <tr>
+    <th colspan="2" class="title"><?=_New Certificate from CSR?></th>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+    <td><?=_I have some existing public key (SPKI) or signing request (CSR) I want to sign. Paste it here:?></td>
+    <td>
+      <textarea class="form-control" name="CSR" class="csr" rows="10" cols="80"></textarea>
+    </td>
+  </tr>
+  <tr>
+    <td colspan="2">
+      <input class="btn btn-primary" type="submit" name="process" value="<?=_Next?>" />
+      <input type='hidden' name='<?=$csrf_name?>' value='<?=$csrf?>'>
+    </td>
+  </tr>
+  </tbody>
+</table>
+</form>
+<form method="post">
+<table class="table">
+  <thead>
+  <tr>
+    <th colspan="2" class="title"><?=_Create a fresh key in the browser (SPKAC)?></th>
+  </tr>
+  </thead>
+  <tbody>
+  <tr>
+    <td><?=_I do not have a CSR.?></td>
+    <td align="left">
+      <?=_key size (2048 recommended)?>: <keygen name="SPKAC" challenge="<?=$spkacChallenge?>"/>
+    </td>
+  </tr>
+  <tr>
+    <td colspan="2">
+     <input class="btn btn-primary" type="submit" name="process" value="<?=_Next?>" />
+     <input type='hidden' name='<?=$csrf_name?>' value='<?=$csrf?>'>
+    </td>
+  </tr>
+  </tbody>
+</table>
+</form>