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-06-05 13:37:10 +00:00
|
|
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
2012-07-17 00:47:08 +00:00
|
|
|
<%@include file="summaryajax.jsi" %>
|
2012-06-05 13:37:10 +00:00
|
|
|
</head><body onload="initAjax()">
|
2009-01-20 17:12:24 +00:00
|
|
|
|
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>
|
2009-08-02 12:57:50 +00:00
|
|
|
<jsp:getProperty name="keyringhelper" property="summary" />
|
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%>" >
|
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>
|
2017-12-01 15:53:16 +00:00
|
|
|
<td align="right"><b><%=intl._t("Full destination, name, base 32, or hash")%>:</b></td>
|
2011-01-02 18:58:06 +00:00
|
|
|
<td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off" spellcheck="false"></textarea></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>
|
2010-04-05 13:34:45 +00:00
|
|
|
<td><input type="text" size="55" name="key" ></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="delete" value="<%=intl._t("Delete key")%>" >
|
|
|
|
<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>
|