2009-01-20 17:12:24 +00:00
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2009-10-23 05:32:47 +00:00
<html><head>
2009-11-21 13:33:57 +00:00
<%@include file="css.jsi" %>
2009-10-23 13:55:44 +00:00
<%=intl.title("config keyring")%>
2012-07-17 00:47:08 +00:00
<%@include file="summaryajax.jsi" %>
2019-12-25 12:18:00 +00:00
</head><body>
2009-11-21 13:33:57 +00:00
<%@include file="summary.jsi" %>
2015-09-25 19:55:36 +00:00
<h1><%=intl._t("I2P Keyring Configuration")%></h1>
2016-05-23 05:41:24 +00:00
<div class="main" id="config_keyring">
2009-11-21 13:33:57 +00:00
<%@include file="confignav.jsi" %>
2009-08-02 12:57:50 +00:00
2017-12-01 14:07:29 +00:00
<jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHandler" id="formhandler" scope="request" />
2012-10-20 20:52:45 +00:00
<%@include file="formhandler.jsi" %>
2017-12-01 14:07:29 +00:00
<jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHelper" id="keyringhelper" scope="request" />
2018-07-28 19:03:01 +00:00
<jsp:setProperty name="keyringhelper" property="contextId" value="<%=i2pcontextId%>" />
2016-04-18 12:11:05 +00:00
<p id="keyringhelp" class="infohelp">
2015-09-25 19:55:36 +00:00
<%=intl._t("The router keyring is used to decrypt encrypted leaseSets.")%>
<%=intl._t("The keyring may contain keys for local or remote encrypted destinations.")%></p>
2010-11-19 15:23:25 +00:00
<form action="" method="POST">
2012-10-20 20:52:45 +00:00
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
2019-05-30 14:26:11 +00:00
<jsp:getProperty name="keyringhelper" property="summary" />
2016-04-18 12:11:05 +00:00
<h3 class="tabletitle"><%=intl._t("Manual Keyring Addition")%></h3>
<table id="addkeyring">
<tr>
<td class="infohelp" colspan="2">
2015-09-25 19:55:36 +00:00
<%=intl._t("Enter keys for encrypted remote destinations here.")%>
2018-03-19 17:19:21 +00:00
<%
net.i2p.util.PortMapper pm = net.i2p.I2PAppContext.getGlobalContext().portMapper();
if (pm.isRegistered(net.i2p.util.PortMapper.SVC_I2PTUNNEL)) {
%>
2015-09-25 19:55:36 +00:00
<%=intl._t("Keys for local destinations must be entered on the")%> <a href="i2ptunnel/"><%=intl._t("I2PTunnel page")%></a>.
2018-03-19 17:19:21 +00:00
<% } %>
2016-04-18 12:11:05 +00:00
</td>
</tr><tr>
2019-11-21 13:59:26 +00:00
<td align="right"><b><%=intl._t("Full destination, name, Base32, or hash")%>:</b></td>
2019-05-27 15:44:51 +00:00
<td><input type="text" name="peer" size="55"></td>
</tr><tr>
<td align="right"><b><%=intl._t("Type")%>:</b></td>
<td><select id="encryptMode" name="encryptMode" class="selectbox">
2019-05-30 15:16:47 +00:00
<option title="<%=intl._t("Enter key provided by server operator.")%>" value="1">
<%=intl._t("Encrypted")%> (AES)</option>
2019-05-27 15:44:51 +00:00
<option title="<%=intl._t("Prevents server discovery by floodfills")%>" value="2">
<%=intl._t("Blinded")%></option>
2019-05-30 15:16:47 +00:00
<option title="<%=intl._t("Enter password provided by server operator.")%>" value="3">
2019-05-27 15:44:51 +00:00
<%=intl._t("Blinded with lookup password")%></option>
2019-05-30 15:16:47 +00:00
<option title="<%=intl._t("Enter key provided by server operator.")%>" value="4" selected="selected">
<%=intl._t("Encrypted")%> (PSK)</option>
<option title="<%=intl._t("Enter key and password provided by server operator.")%>" value="5">
<%=intl._t("Encrypted with lookup password")%> (PSK)</option>
<option title="<%=intl._t("Key will be generated.")%> <%=intl._t("Send key to server operator.")%>" value="6">
<%=intl._t("Encrypted")%> (DH)</option>
<option title="<%=intl._t("Enter password provided by server operator.")%> <%=intl._t("Key will be generated.")%> <%=intl._t("Send key to server operator.")%>" value="7">
<%=intl._t("Encrypted with lookup password")%> (DH)</option>
2019-05-27 15:44:51 +00:00
</select></td>
2009-08-15 16:08:33 +00:00
</tr><tr>
2017-05-14 05:30:13 +00:00
<td align="right"><b><%=intl._t("Encryption Key")%>:</b></td>
2019-05-30 15:28:36 +00:00
<td><input type="text" size="55" name="key" title="<%=intl._t("Enter key provided by server operator.")%> <%=intl._t("Leave blank for DH option.")%> <%=intl._t("Key will be generated.")%>"></td>
2019-05-27 15:44:51 +00:00
</tr><tr>
<td align="right"><b><%=intl._t("Optional lookup password")%>:</b></td>
2019-05-30 15:28:36 +00:00
<td><input type="password" name="nofilter_blindedPassword" title="<%=intl._t("Enter password provided by server operator.")%>" class="freetext password" /></td>
2009-08-15 16:08:33 +00:00
</tr><tr>
2010-04-05 13:34:45 +00:00
<td align="right" colspan="2">
2015-09-25 19:55:36 +00:00
<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
<input type="submit" name="action" class="add" value="<%=intl._t("Add key")%>" >
2016-04-18 12:11:05 +00:00
</td></tr></table></form></div></body></html>