summaryrefslogtreecommitdiffstats
path: root/base/server/share
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-02-18 09:59:30 +0100
committerEndi S. Dewata <edewata@redhat.com>2017-02-21 22:24:53 +0100
commit961b0138dbc0f5e6af1195f61e36a42ad67baaa7 (patch)
treef40149a3b4d42ce56360106a89feb5de5f86cffd /base/server/share
parent1e56b4c84028fb98b906be4b6caed803e6862706 (diff)
downloadpki-961b0138dbc0f5e6af1195f61e36a42ad67baaa7.tar.gz
pki-961b0138dbc0f5e6af1195f61e36a42ad67baaa7.tar.xz
pki-961b0138dbc0f5e6af1195f61e36a42ad67baaa7.zip
Reorganized PKI UI pages.
Previously the index.jsp of the ROOT web application was storing PKI UI main page which contains links to PKI subsystems installed on the instance. Now the file has been changed to redirect to /pki which provides a new PKI UI welcome page. The PKI UI main page itself has been moved to /pki/ui. https://fedorahosted.org/pki/ticket/2582
Diffstat (limited to 'base/server/share')
-rw-r--r--base/server/share/webapps/ROOT/index.jsp164
-rw-r--r--base/server/share/webapps/pki/index.jsp107
-rw-r--r--base/server/share/webapps/pki/ui/index.jsp165
3 files changed, 273 insertions, 163 deletions
diff --git a/base/server/share/webapps/ROOT/index.jsp b/base/server/share/webapps/ROOT/index.jsp
index ade01bc9e..61f5838fe 100644
--- a/base/server/share/webapps/ROOT/index.jsp
+++ b/base/server/share/webapps/ROOT/index.jsp
@@ -1,165 +1,3 @@
-<!-- --- BEGIN COPYRIGHT BLOCK ---
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; version 2 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
- Copyright (C) 2012 Red Hat, Inc.
- All rights reserved.
- --- END COPYRIGHT BLOCK --- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.js"></script>
-<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.i18n.properties.js"></script>
-
-<script type="text/javascript" language="JavaScript">
-$(function() {
- $.i18n.properties({
- name: 'pki',
- language: ' ', // suppress potential 404's due to .i18n.browserLang()
- path: '/pki/',
- mode: 'map',
- callback: function() {
- var key;
- for (key in $.i18n.map) {
- var message = $.i18n.prop(key);
- $('span.message[name='+key+']').html(message);
- }
- }
- });
-});
-</script>
-
-<title>Certificate System</title>
-<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
-<link rel="shortcut icon" href="/pki/images/favicon.ico" />
-<link rel="stylesheet" href="/pki/css/pki-base.css" type="text/css" />
-</head>
-<body bgcolor="#FFFFFF" link="#666699" vlink="#666699" alink="#333366">
-
-<div id="header">
- <span class="message" name="logo">
- <a href="http://pki.fedoraproject.org/" title="Visit pki.fedoraproject.org for more information about Certificate System products and services"><img src="/pki/images/logo_header.gif" alt="Certificate System" id="myLogo" /></a>
- </span>
- <div id="headertitle">
- <span class="message" name="title">
- <a href="/" title=Certificate System">Certificate System</a>
- </span>
- </div>
- <div id="account">
- <dl><dt><span></span></dt><dd></dd></dl>
- </div>
-</div>
-
-<div id="mainNavOuter" class="pki-ee-theme">
-<div id="mainNav">
-<div id="mainNavInner">
-
-</div><!-- end mainNavInner -->
-</div><!-- end mainNav -->
-</div><!-- end mainNavOuter -->
-
-
-<div id="bar">
-
-<div id="systembar">
-<div id="systembarinner">
-
-<div>
- -
-</div>
-
-
-</div>
-</div>
-
-</div>
-
-<center>
-
-<br>
-
-<table border="0" cellspacing="0" cellpadding="0">
-<tr valign="TOP">
- <td>
<%
- ServletContext caContext = getServletContext().getContext("/ca");
- if (caContext != null) {
- String caName = caContext.getServletContextName();
- String caPath = caContext.getContextPath();
- if (!"".equals(caPath)) {
+ response.sendRedirect("/pki");
%>
- <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
- <a href="/ca"><%= caName %></a></font>
-<%
- }
- }
-
- ServletContext kraContext = getServletContext().getContext("/kra");
- if (kraContext != null) {
- String kraName = kraContext.getServletContextName();
- String kraPath = kraContext.getContextPath();
- if (!"".equals(kraPath) && request.isSecure()) {
-%>
- <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
- <a href="/kra"><%= kraName %></a></font>
-<%
- }
- }
-
- ServletContext ocspContext = getServletContext().getContext("/ocsp");
- if (ocspContext != null) {
- String ocspName = ocspContext.getServletContextName();
- String ocspPath = ocspContext.getContextPath();
- if (!"".equals(ocspPath) && request.isSecure()) {
-%>
- <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
- <a href="/ocsp"><%= ocspName %></a></font>
-<%
- }
- }
-
- ServletContext tksContext = getServletContext().getContext("/tks");
- if (tksContext != null) {
- String tksName = tksContext.getServletContextName();
- String tksPath = tksContext.getContextPath();
- if (!"".equals(tksPath) && request.isSecure()) {
-%>
- <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
- <a href="/tks"><%= tksName %></a></font>
-<%
- }
- }
-
- ServletContext tpsContext = getServletContext().getContext("/tps");
- if (tpsContext != null) {
- String tpsName = tpsContext.getServletContextName();
- String tpsPath = tpsContext.getContextPath();
- if (!"".equals(tpsPath) && request.isSecure()) {
-%>
- <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
- <a href="/tps/"><%= tpsName %></a></font>
-<%
- }
- }
-%>
- </td>
-</tr>
-</table>
-
-</center>
-
-<div id="footer">
-</div>
-
-</body>
-</html>
diff --git a/base/server/share/webapps/pki/index.jsp b/base/server/share/webapps/pki/index.jsp
new file mode 100644
index 000000000..8eb585469
--- /dev/null
+++ b/base/server/share/webapps/pki/index.jsp
@@ -0,0 +1,107 @@
+<!-- --- BEGIN COPYRIGHT BLOCK ---
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ Copyright (C) 2012 Red Hat, Inc.
+ All rights reserved.
+ --- END COPYRIGHT BLOCK --- -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/pki/css/patternfly.css" rel="stylesheet" media="screen, print">
+<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.js"></script>
+<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.i18n.properties.js"></script>
+<script type="text/javascript" language="JavaScript" src="/pki/js/bootstrap.js"></script>
+
+<script type="text/javascript" language="JavaScript">
+$(function() {
+ $.i18n.properties({
+ name: 'pki',
+ language: ' ', // suppress potential 404's due to .i18n.browserLang()
+ path: '/pki/',
+ mode: 'map',
+ callback: function() {
+ var key;
+ for (key in $.i18n.map) {
+ var message = $.i18n.prop(key);
+ $('span.message[name='+key+']').html(message);
+ }
+ }
+ });
+});
+</script>
+
+<title>Certificate System</title>
+<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
+<link rel="shortcut icon" href="/pki/images/favicon.ico" />
+<link rel="stylesheet" href="/pki/css/pki-base.css" type="text/css" />
+</head>
+<body bgcolor="#FFFFFF" link="#666699" vlink="#666699" alink="#333366">
+
+<div id="header">
+ <span class="message" name="logo">
+ <a href="http://pki.fedoraproject.org/" title="Visit pki.fedoraproject.org for more information about Certificate System products and services"><img src="/pki/images/logo_header.gif" alt="Certificate System" id="myLogo" /></a>
+ </span>
+ <div id="headertitle">
+ <span class="message" name="title">
+ <a href="/" title=Certificate System">Certificate System</a>
+ </span>
+ </div>
+ <div id="account">
+ <dl><dt><span></span></dt><dd></dd></dl>
+ </div>
+</div>
+
+<div id="mainNavOuter" class="pki-ee-theme">
+<div id="mainNav">
+<div id="mainNavInner">
+
+</div><!-- end mainNavInner -->
+</div><!-- end mainNav -->
+</div><!-- end mainNavOuter -->
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+<div>
+ -
+</div>
+
+
+</div>
+</div>
+
+</div>
+
+
+<div class="col-lg-7">
+<p>
+The <span class="message" name="title">Certificate System</span> is an enterprise-class open source Certificate Authority (CA).
+It is a full-featured system, and has been hardened by real-world deployments.
+It supports all aspects of certificate lifecycle management, including key archival, OCSP and smartcard management, and much more.
+</p>
+
+<p>
+<b><font size="+2"><a name="enter" href="/pki/ui/">Enter</a></font></b>
+</p>
+
+</div>
+
+<div id="footer">
+</div>
+
+</body>
+</html>
diff --git a/base/server/share/webapps/pki/ui/index.jsp b/base/server/share/webapps/pki/ui/index.jsp
new file mode 100644
index 000000000..ade01bc9e
--- /dev/null
+++ b/base/server/share/webapps/pki/ui/index.jsp
@@ -0,0 +1,165 @@
+<!-- --- BEGIN COPYRIGHT BLOCK ---
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ Copyright (C) 2012 Red Hat, Inc.
+ All rights reserved.
+ --- END COPYRIGHT BLOCK --- -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.js"></script>
+<script type="text/javascript" language="JavaScript" src="/pki/js/jquery.i18n.properties.js"></script>
+
+<script type="text/javascript" language="JavaScript">
+$(function() {
+ $.i18n.properties({
+ name: 'pki',
+ language: ' ', // suppress potential 404's due to .i18n.browserLang()
+ path: '/pki/',
+ mode: 'map',
+ callback: function() {
+ var key;
+ for (key in $.i18n.map) {
+ var message = $.i18n.prop(key);
+ $('span.message[name='+key+']').html(message);
+ }
+ }
+ });
+});
+</script>
+
+<title>Certificate System</title>
+<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
+<link rel="shortcut icon" href="/pki/images/favicon.ico" />
+<link rel="stylesheet" href="/pki/css/pki-base.css" type="text/css" />
+</head>
+<body bgcolor="#FFFFFF" link="#666699" vlink="#666699" alink="#333366">
+
+<div id="header">
+ <span class="message" name="logo">
+ <a href="http://pki.fedoraproject.org/" title="Visit pki.fedoraproject.org for more information about Certificate System products and services"><img src="/pki/images/logo_header.gif" alt="Certificate System" id="myLogo" /></a>
+ </span>
+ <div id="headertitle">
+ <span class="message" name="title">
+ <a href="/" title=Certificate System">Certificate System</a>
+ </span>
+ </div>
+ <div id="account">
+ <dl><dt><span></span></dt><dd></dd></dl>
+ </div>
+</div>
+
+<div id="mainNavOuter" class="pki-ee-theme">
+<div id="mainNav">
+<div id="mainNavInner">
+
+</div><!-- end mainNavInner -->
+</div><!-- end mainNav -->
+</div><!-- end mainNavOuter -->
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+<div>
+ -
+</div>
+
+
+</div>
+</div>
+
+</div>
+
+<center>
+
+<br>
+
+<table border="0" cellspacing="0" cellpadding="0">
+<tr valign="TOP">
+ <td>
+<%
+ ServletContext caContext = getServletContext().getContext("/ca");
+ if (caContext != null) {
+ String caName = caContext.getServletContextName();
+ String caPath = caContext.getContextPath();
+ if (!"".equals(caPath)) {
+%>
+ <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
+ <a href="/ca"><%= caName %></a></font>
+<%
+ }
+ }
+
+ ServletContext kraContext = getServletContext().getContext("/kra");
+ if (kraContext != null) {
+ String kraName = kraContext.getServletContextName();
+ String kraPath = kraContext.getContextPath();
+ if (!"".equals(kraPath) && request.isSecure()) {
+%>
+ <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
+ <a href="/kra"><%= kraName %></a></font>
+<%
+ }
+ }
+
+ ServletContext ocspContext = getServletContext().getContext("/ocsp");
+ if (ocspContext != null) {
+ String ocspName = ocspContext.getServletContextName();
+ String ocspPath = ocspContext.getContextPath();
+ if (!"".equals(ocspPath) && request.isSecure()) {
+%>
+ <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
+ <a href="/ocsp"><%= ocspName %></a></font>
+<%
+ }
+ }
+
+ ServletContext tksContext = getServletContext().getContext("/tks");
+ if (tksContext != null) {
+ String tksName = tksContext.getServletContextName();
+ String tksPath = tksContext.getContextPath();
+ if (!"".equals(tksPath) && request.isSecure()) {
+%>
+ <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
+ <a href="/tks"><%= tksName %></a></font>
+<%
+ }
+ }
+
+ ServletContext tpsContext = getServletContext().getContext("/tps");
+ if (tpsContext != null) {
+ String tpsName = tpsContext.getServletContextName();
+ String tpsPath = tpsContext.getContextPath();
+ if (!"".equals(tpsPath) && request.isSecure()) {
+%>
+ <li><font size=4 face="PrimaSans BT, Verdana, sans-serif">
+ <a href="/tps/"><%= tpsName %></a></font>
+<%
+ }
+ }
+%>
+ </td>
+</tr>
+</table>
+
+</center>
+
+<div id="footer">
+</div>
+
+</body>
+</html>