Commit 1726984a authored by Bill Lynch's avatar Bill Lynch Committed by bill

No longer needed


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@368 b35dd754-fafc-0310-a699-88a17e54d16e
parent e865bec1
<%--
- $RCSfile$
- $Revision$
- $Date$
--%>
<%@ page import="org.jivesoftware.util.*,
org.jivesoftware.messenger.user.UserManager,
org.jivesoftware.messenger.net.SSLConfig"
errorPage="error.jsp"
%>
<%@ include file="global.jsp" %>
<% // Get parameters //
boolean cancel = request.getParameter("cancel") != null;
boolean delete = request.getParameter("delete") != null;
String alias = request.getParameter("alias");
String type = request.getParameter("type");
// Handle a cancel
if (cancel) {
response.sendRedirect("ssl-settings.jsp");
return;
}
// Handle a cert delete:
if (delete) {
if ("client".equals(type)){
SSLConfig.getTrustStore().deleteEntry(alias);
}
else {
SSLConfig.getKeyStore().deleteEntry(alias);
}
SSLConfig.saveStores();
response.sendRedirect("ssl-settings.jsp");
return;
}
%>
<jsp:include page="header.jsp" flush="true" />
<% // Title of this page and breadcrumbs
String title = "Delete SSL Certificate";
String[][] breadcrumbs = {
{ "Home", "main.jsp" },
{ "SSL Setings", "ssl-settings.jsp" },
{ title, "ssl-delete.jsp?alias=" + alias + "&type=" + type}
};
%>
<jsp:include page="title.jsp" flush="true" />
<br>
<p>
Are you sure you want to delete the certificate for the alias
<b><%= alias %></b>
from the system?
</p>
<form action="ssl-delete.jsp">
<input type="hidden" name="alias" value="<%= alias %>">
<input type="hidden" name="type" value="<%= type %>">
<input type="submit" name="delete" value="Delete Certificate">
<input type="submit" name="cancel" value="Cancel">
</form>
<jsp:include page="footer.jsp" flush="true" />
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment