source: apps/routerconsole/jsp/configkeyring.jsp @ 73b00eb

Last change on this file since 73b00eb was 73b00eb, checked in by zzz <zzz@…>, 12 months ago

Console: Start rework of /configkeyring for LS2
Not hooked up yet - WIP

  • Property mode set to 100644
File size: 4.1 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>
6<%@include file="css.jsi" %>
7<%=intl.title("config keyring")%>
8<script src="/js/ajax.js" type="text/javascript"></script>
9<%@include file="summaryajax.jsi" %>
10</head><body onload="initAjax()">
11
12<%@include file="summary.jsi" %>
13<h1><%=intl._t("I2P Keyring Configuration")%></h1>
14<div class="main" id="config_keyring">
15 <%@include file="confignav.jsi" %>
16
17 <jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHandler" id="formhandler" scope="request" />
18<%@include file="formhandler.jsi" %>
19 <jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHelper" id="keyringhelper" scope="request" />
20 <jsp:setProperty name="keyringhelper" property="contextId" value="<%=i2pcontextId%>" />
21<p id="keyringhelp" class="infohelp">
22 <%=intl._t("The router keyring is used to decrypt encrypted leaseSets.")%>
23 <%=intl._t("The keyring may contain keys for local or remote encrypted destinations.")%></p>
24 <jsp:getProperty name="keyringhelper" property="summary" />
25 <form action="" method="POST">
26 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
27 <h3 class="tabletitle"><%=intl._t("Manual Keyring Addition")%></h3>
28 <table id="addkeyring">
29        <tr>
30          <td class="infohelp" colspan="2">
31 <%=intl._t("Enter keys for encrypted remote destinations here.")%>
32<%
33    net.i2p.util.PortMapper pm = net.i2p.I2PAppContext.getGlobalContext().portMapper();
34    if (pm.isRegistered(net.i2p.util.PortMapper.SVC_I2PTUNNEL)) {
35%>
36 <%=intl._t("Keys for local destinations must be entered on the")%> <a href="i2ptunnel/"><%=intl._t("I2PTunnel page")%></a>.
37<%  }  %>
38          </td>
39        </tr><tr>
40          <td align="right"><b><%=intl._t("Full destination, name, base 32, or hash")%>:</b></td>
41          <td><input type="text" name="peer" size="55"></td>
42        </tr><tr>
43          <td align="right"><b><%=intl._t("Type")%>:</b></td>
44          <td><select id="encryptMode" name="encryptMode" class="selectbox">
45          <option title="<%=intl._t("Only clients with the encryption key will be able to connect")%>" value="1">
46              <%=intl._t("Encrypted")%></option>
47          <option title="<%=intl._t("Prevents server discovery by floodfills")%>" value="2">
48              <%=intl._t("Blinded")%></option>
49          <option title="<%=intl._t("Only clients with the password will be able to connect")%>" value="3">
50              <%=intl._t("Blinded with lookup password")%></option>
51          <option title="<%=intl._t("Only clients with the encryption key will be able to connect")%>" value="4">
52              <%=intl._t("Blinded with shared key")%></option>
53          <option title="<%=intl._t("Only clients with the password and key will be able to connect")%>" value="5">
54              <%=intl._t("Blinded with lookup password and shared key")%></option>
55          <option title="<%=intl._t("Only clients with the encryption key will be able to connect")%>" value="8">
56              <%=intl._t("Blinded with per-user key")%> (DH)</option>
57          <option title="<%=intl._t("Only clients with the password and key will be able to connect")%>" value="9">
58              <%=intl._t("Blinded with lookup password and per-user key")%> (DH)</option>
59          </select></td>
60        </tr><tr>
61          <td align="right"><b><%=intl._t("Encryption Key")%>:</b></td>
62          <td><input type="text" size="55" name="key" title="<%=intl._t("Leave blank for DH, will be generated automatically")%>"></td>
63        </tr><tr>
64           <td align="right"><b><%=intl._t("Optional lookup password")%>:</b></td>
65           <td><input type="password" name="nofilter_blindedPassword" title="<%=intl._t("Set password required to access this service")%>" class="freetext password" /></td>
66        </tr><tr>
67          <td align="right" colspan="2">
68<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
69<input type="submit" name="action" class="delete" value="<%=intl._t("Delete key")%>" >
70<input type="submit" name="action" class="add" value="<%=intl._t("Add key")%>" >
71</td></tr></table></form></div></body></html>
Note: See TracBrowser for help on using the repository browser.