source: apps/routerconsole/jsp/configkeyring.jsp @ 35da3f3

Last change on this file since 35da3f3 was 35da3f3, checked in by sponge <sponge@…>, 11 years ago

HTML bugfixes in routerconsole pages.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head><title>I2P Router Console - config keyring</title>
6<%@include file="css.jsp" %>
7</head><body>
8
9<%@include file="summary.jsp" %>
10<h1>I2P Keyring Configuration</h1>
11<div class="main" id="main">
12 <%@include file="confignav.jsp" %>
13
14 <jsp:useBean class="net.i2p.router.web.ConfigKeyringHandler" id="formhandler" scope="request" />
15 <jsp:setProperty name="formhandler" property="*" />
16 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
17 <jsp:getProperty name="formhandler" property="allMessages" />
18 <jsp:useBean class="net.i2p.router.web.ConfigKeyringHelper" id="keyringhelper" scope="request" />
19 <jsp:setProperty name="keyringhelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
20<div class="configure"><p><h3>Keyring</h3>
21 The router keyring is used to decrypt encrypted leaseSets.
22 The keyring may contain keys for local or remote encrypted destinations.
23 <div class="wideload"><p>
24 <jsp:getProperty name="keyringhelper" property="summary" />
25</p></div>
26
27 <br>
28
29 <form action="configkeyring.jsp" method="POST">
30 <% String prev = System.getProperty("net.i2p.router.web.ConfigKeyringHandler.nonce");
31    if (prev != null) System.setProperty("net.i2p.router.web.ConfigKeyringHandler.noncePrev", prev);
32    System.setProperty("net.i2p.router.web.ConfigKeyringHandler.nonce", new java.util.Random().nextLong()+""); %>
33 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigKeyringHandler.nonce")%>" />
34 <h3>Manual Keyring Addition</h3>
35 Enter keys for encrypted remote destinations here.
36 Keys for local destinations must be entered on the <a href="i2ptunnel/index.jsp">I2PTunnel page</a>.
37 <p>
38  <div class="wideload">
39      <table><tr>
40          <td class="mediumtags" align="right">Dest. name, hash, or full key:</td>
41          <td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off"></textarea></td>
42        </tr><tr>
43          <td class="mediumtags" align="right">Session Key:</td>
44          <td><input type="text" size="55" name="key" /></td>
45        </tr><tr>
46          <td></td>
47          <td align="right"><input type="submit" name="action" value="Add key" /></td>
48</tr></table></div></form></div></div></body></html>
Note: See TracBrowser for help on using the repository browser.