geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r326211 - in /geronimo/trunk/applications/console-standard/src: java/org/apache/geronimo/console/certmanager/actions/ webapp/WEB-INF/view/certmanager/
Date Tue, 18 Oct 2005 19:35:16 GMT
Author: djencks
Date: Tue Oct 18 12:35:10 2005
New Revision: 326211

URL: http://svn.apache.org/viewcvs?rev=326211&view=rev
Log:
GERONIMO-887 Add jsps missed in first commit and remove gluecode reference in attribute names

Added:
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/changeStorePasswordNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateCSRNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateKeyPairNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/help.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importCAReplyNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importTrustedCertNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewCertificateNormal.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreHelp.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreNormal.jsp
Modified:
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateCSR.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateKeyPair.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ImportTrustedCertificate.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/UploadCertificateFile.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStore.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStoreEntryDetail.java

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateCSR.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateCSR.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateCSR.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateCSR.java
Tue Oct 18 12:35:10 2005
@@ -48,7 +48,7 @@
                             new Object[] { alias },
                             new String[] { "java.lang.String" });
 
-            request.setAttribute("com.gluecode.se.cert.csr", csr);
+            request.setAttribute("org.apache.geronimo.console.cert.csr", csr);
             request.setAttribute("alias", alias);
         } catch (Exception e) {
             throw new PortletException(e);

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateKeyPair.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateKeyPair.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateKeyPair.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/GenerateKeyPair.java
Tue Oct 18 12:35:10 2005
@@ -109,11 +109,11 @@
                         .getSingleKernel().getAttribute(objname,
                                 "keyStoreLocation");
 
-                request.setAttribute("com.gluecode.se.keystore.type",
+                request.setAttribute("org.apache.geronimo.console.keystore.type",
                         keyStoreType);
-                request.setAttribute("com.gluecode.se.keystore.provider",
+                request.setAttribute("org.apache.geronimo.console.keystore.provider",
                         keyStoreProvider);
-                request.setAttribute("com.gluecode.se.keystore.location",
+                request.setAttribute("org.apache.geronimo.console.keystore.location",
                         keyStoreLocation);
 
                 List storelist = (List) KernelRegistry.getSingleKernel()
@@ -126,9 +126,9 @@
                 }
 
                 request
-                        .setAttribute("com.gluecode.se.keystore.list",
+                        .setAttribute("org.apache.geronimo.console.keystore.list",
                                 storelist);
-                request.setAttribute("com.gluecode.se.keystore.size", String
+                request.setAttribute("org.apache.geronimo.console.keystore.size", String
                         .valueOf(storelist.size()));
             } catch (Exception e) {
                 throw new PortletException(e);

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ImportTrustedCertificate.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ImportTrustedCertificate.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ImportTrustedCertificate.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ImportTrustedCertificate.java
Tue Oct 18 12:35:10 2005
@@ -53,7 +53,7 @@
         }
 
         String certfileEnc = request
-                .getParameter("com.gluecode.se.cert.file.enc");
+                .getParameter("org.apache.geronimo.console.cert.file.enc");
         String alias = request.getParameter("alias");
 
         // decode certificate file name

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/UploadCertificateFile.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/UploadCertificateFile.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/UploadCertificateFile.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/UploadCertificateFile.java
Tue Oct 18 12:35:10 2005
@@ -93,7 +93,7 @@
         portlet.getPortletContext().log("cert-file-name: " + certFileName);
         portlet.getPortletContext().log("enc: " + enc);
 
-        response.setRenderParameter("com.gluecode.se.cert.file.enc", enc);
+        response.setRenderParameter("org.apache.geronimo.console.cert.file.enc", enc);
         response.setRenderParameter("action", request.getParameter("action"));
     }
 
@@ -102,7 +102,7 @@
             throws PortletException, IOException {
 
         String encodedCertFileName = request
-                .getParameter("com.gluecode.se.cert.file.enc");
+                .getParameter("org.apache.geronimo.console.cert.file.enc");
         String certFileName = URLDecoder.decode(encodedCertFileName, "UTF-8");
         portlet.getPortletContext().log("cert file: " + certFileName);
 
@@ -127,8 +127,8 @@
                 }
             }
 
-            request.setAttribute("com.gluecode.se.certs", certs);
-            request.setAttribute("com.gluecode.se.cert.file.enc",
+            request.setAttribute("org.apache.geronimo.console.certs", certs);
+            request.setAttribute("org.apache.geronimo.console.cert.file.enc",
                     encodedCertFileName);
         }
 

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStore.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStore.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStore.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStore.java
Tue Oct 18 12:35:10 2005
@@ -55,10 +55,10 @@
             String keyStoreLocation = (String) KernelRegistry.getSingleKernel()
                     .getAttribute(objname, "keyStoreLocation");
 
-            request.setAttribute("com.gluecode.se.keystore.type", keyStoreType);
-            request.setAttribute("com.gluecode.se.keystore.provider",
+            request.setAttribute("org.apache.geronimo.console.keystore.type", keyStoreType);
+            request.setAttribute("org.apache.geronimo.console.keystore.provider",
                     keyStoreProvider);
-            request.setAttribute("com.gluecode.se.keystore.location",
+            request.setAttribute("org.apache.geronimo.console.keystore.location",
                     keyStoreLocation);
 
             List storelist = (List) KernelRegistry.getSingleKernel().invoke(
@@ -69,8 +69,8 @@
                 portlet.getPortletContext().log("store-item = " + iter.next());
             }
 
-            request.setAttribute("com.gluecode.se.keystore.list", storelist);
-            request.setAttribute("com.gluecode.se.keystore.size", String
+            request.setAttribute("org.apache.geronimo.console.keystore.list", storelist);
+            request.setAttribute("org.apache.geronimo.console.keystore.size", String
                     .valueOf(storelist.size()));
         } catch (Exception e) {
             throw new PortletException(e);

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStoreEntryDetail.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStoreEntryDetail.java?rev=326211&r1=326210&r2=326211&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStoreEntryDetail.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/certmanager/actions/ViewKeyStoreEntryDetail.java
Tue Oct 18 12:35:10 2005
@@ -55,7 +55,7 @@
                             new Object[] { alias },
                             new String[] { "java.lang.String" });
 
-            request.setAttribute("com.gluecode.se.keystore.entry.info", kinfo);
+            request.setAttribute("org.apache.geronimo.console.keystore.entry.info", kinfo);
 
             // get keystore certificate chain by the alias
             Certificate[] chain = (Certificate[]) KernelRegistry
@@ -64,7 +64,7 @@
                             new String[] { "java.lang.String" });
 
             // set attributes
-            request.setAttribute("com.gluecode.se.certs", chain);
+            request.setAttribute("org.apache.geronimo.console.certs", chain);
         } catch (Exception e) {
             throw new PortletException(e);
         }

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/changeStorePasswordNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/changeStorePasswordNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/changeStorePasswordNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/changeStorePasswordNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,5 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+change store password ...

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateCSRNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateCSRNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateCSRNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateCSRNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+alias: <c:out value="${alias}"/><br/>
+
+<table>
+<th>PKCS10 Certification Request</th>
+<tr>
+<td>
+<form action=>
+<textarea rows="15" cols="80" readonly>
+<c:out value="${requestScope['org.apache.geronimo.console.cert.csr']}"/>
+</textarea>
+</td>
+</tr>
+<tr>
+<td><a href="javascript:history.back();">back</a></td>
+</tr>
+</table>

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateKeyPairNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateKeyPairNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateKeyPairNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/generateKeyPairNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,71 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+<script language="JavaScript">
+var <portlet:namespace/>formName = "<portlet:namespace/>generateKeyPair";
+var <portlet:namespace/>requiredFields = new Array("alias","validity","cn","ou","o","l","st","c");
+function <portlet:namespace/>validateForm(){
+    return textElementsNotEmpty(<portlet:namespace/>formName,<portlet:namespace/>requiredFields)
&& checkIntegral(<portlet:namespace/>formName,"validity");
+}
+</script>
+
+<form method="post" name="<portlet:namespace/>generateKeyPair"
+action="<portlet:actionURL><portlet:param name="action" value="generate-key-pair"/></portlet:actionURL>">
+<table>
+<th colspan="2">Generate Key Pair</th>
+<tr>
+<td>Alias:</td>
+<td><input type="text" name="alias"/></td>
+</tr>
+<tr>
+<td>Key Algorithm:</td>
+<td><input type="radio" name="keyalg" value="RSA" checked>RSA</input></td>
+</tr>
+<tr>
+<td>Key Size:</td>
+<td>
+<input type="radio" name="keysize" value="512">512</input>
+<input type="radio" name="keysize" value="1024" checked>1024</input>
+<input type="radio" name="keysize" value="2048">2048</input>
+</td>
+</tr>
+<tr>
+<td>Signature Algorithm:</td>
+<td>
+<input type="radio" name="sigalg" value="MD2withRSA">MD2withRSA</input>
+<input type="radio" name="sigalg" value="MD5withRSA" checked>MD5withRSA</input>
+<input type="radio" name="sigalg" value="SHA1withRSA">SHA1withRSA</input>
+</td>
+</tr>
+<tr>
+<td>Validity:</td><td><input type="text" name="validity"/></td>
+</tr>
+<tr>
+<td>Common Name (CN):</td><td><input type="text" name="cn"/></td>
+</tr>
+<tr>
+<td>Organizational Unit (OU):</td><td><input type="text" name="ou"/></td>
+</tr>
+<tr>
+<td>Organizational Name (O):</td><td><input type="text" name="o"/></td>
+</tr>
+<tr>
+<td>Locality (L):</td><td><input type="text" name="l"/></td>
+</tr>
+<tr>
+<td>State (ST):</td><td><input type="text" name="st"/></td>
+</tr>
+<tr>
+<td>Country (C):</td><td><input type="text" name="c"/></td>
+</tr>
+<%--
+<tr>
+<td>Email (E):</td><td><input type="text" name="e"/></td>
+</tr>
+--%>
+</table>
+<br/>
+<input type="submit" name="submit" value="submit" onclick="return <portlet:namespace/>validateForm()"/>
+<input type="reset"/>
+<input type="submit" name="submit" value="cancel"/>
+</form>

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/help.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/help.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/help.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/help.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,3 @@
+list public key certificates, list trust roots, import public key cert, import trust root,
generate certificate signing request (file, email), delete entry, display public key cert,
display trusted root , generate self-signed cert, 
+
+

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importCAReplyNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importCAReplyNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importCAReplyNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importCAReplyNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,26 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+alias: <c:out value="${alias}"/><br/>
+
+<form method="post"
+action="<portlet:actionURL><portlet:param name="action" value="save-pkcs7-cert"/></portlet:actionURL>">
+<table>
+<th>PKCS7 Certificaticate Reply</th>
+<tr>
+<td>
+<textarea rows="25" cols="80" name="pkcs7cert">
+...paste pkcs7 encoded certificate reply here...
+</textarea>
+</td>
+</tr>
+</table>
+<table>
+<tr>
+<td><input type="submit" name="submit" value="Save"/></td>
+<td><input type="submit" name="submit" value="Cancel"/></td>
+</tr>
+</table>
+<input type="hidden" name="alias" value="${alias}">
+</form>
\ No newline at end of file

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importTrustedCertNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importTrustedCertNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importTrustedCertNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/importTrustedCertNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,94 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<form enctype="multipart/form-data" method="POST"
+    action="<portlet:actionURL><portlet:param name="action" value="upload-certificate-file"/></portlet:actionURL>">
+<table>
+  <tr><th align="right">Certificate File: </th><td><input type="file"
name="certfile" size="60"/></td></tr>
+  <tr><td colspan="2" align="center"><input type="submit" name="submit" value="View
Certificate" /></td></tr>
+</table>
+</form>
+
+<c:set var="certs" value="${requestScope['org.apache.geronimo.console.certs']}"/>
+
+<form method="POST"
+action="<portlet:actionURL><portlet:param name="action" value="import-trusted-certificate"/></portlet:actionURL>">
+<table>
+<tr>
+<td>Alias:</td><td><input type="text" name="alias"/></td>
+</tr>
+</table>
+
+<br/>
+
+<c:forEach items="${certs}" var="cert">
+<table>
+<th>Certificate Info</th>
+<th><c:out value="${requestScope['org.apache.geronimo.console.cert.file.enc']}"/></th>
+<tr>
+<td>Version:</td>
+<td><c:out value="${cert.version}"/></td>
+</tr>
+<tr>
+<td>Subject:</td>
+<td><c:out value="${cert.subjectDN.name}"/></td>
+</tr>
+<tr>
+<td>Issuer:</td>
+<td><c:out value="${cert.issuerDN.name}"/></td>
+</tr>
+<tr>
+<td>Serial Number:</td>
+<td><c:out value="${cert.serialNumber}"/></td>
+</tr>
+<tr>
+<td>Valid From:</td>
+<td><c:out value="${cert.notBefore}"/></td>
+</tr>
+<tr>
+<td>Valid To:</td>
+<td><c:out value="${cert.notAfter}"/></td>
+</tr>
+<tr>
+<td>Signature Alg:</td>
+<td><c:out value="${cert.sigAlgName}"/></td>
+</tr>
+<tr>
+<td>Public Key Alg:</td>
+<td><c:out value="${cert.publicKey.algorithm}"/></td>
+</tr>
+<tr>
+<c:forEach items="${cert.criticalExtensionOIDs}" var="extoid">
+<tr>
+<td>critical ext: </td>
+<td><c:out value="${extoid}"/></td>
+</tr>
+</c:forEach>
+<c:forEach items="${cert.nonCriticalExtensionOIDs}" var="extoid">
+<tr>
+<td>non-critical ext: </td>
+<td><c:out value="${extoid}"/></td>
+</tr>
+</c:forEach>
+</table>
+</c:forEach>
+
+<br/>
+
+<table>
+<tr>
+<c:choose>
+<c:when test="${empty certs}">
+<td align="center"><input type="submit" name="submit" value="Import" disabled/></td>
+</c:when>
+<c:otherwise>
+<td align="center"><input type="submit" name="submit" value="Import"/></td>
+</c:otherwise>
+</c:choose>
+<td align="center"><input type="submit" name="submit" value="Cancel"/></td>
+</tr>
+</table>
+<input type="hidden" name="org.apache.geronimo.console.cert.file.enc"
+    value="<c:out value="${requestScope['org.apache.geronimo.console.cert.file.enc']}"/>"/>
+</form>

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewCertificateNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewCertificateNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewCertificateNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewCertificateNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,92 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+<c:set var="info" value="${requestScope['org.apache.geronimo.console.keystore.entry.info']}"/>
+<table>
+<th>alias</th>
+<th>type</th>
+<th>modified</th>
+<tr>
+<td><c:out value="${info.alias}"/></td>
+<td><c:out value="${info.type}"/></td>
+<td><c:out value="${info.created}"/></td>
+</tr>
+</table>
+<br/>
+
+<c:if test="${info.privateKey}">
+<table cellspacing="5">
+<tr>
+<td><a href="<portlet:renderURL>
+<portlet:param name='action' value='generate-csr'/>
+<portlet:param name='alias' value='${info.alias}'/>
+</portlet:renderURL>">
+generate CSR</a></td>
+<td><a href="<portlet:renderURL>
+<portlet:param name='action' value='import-ca-reply'/>
+<portlet:param name='alias' value='${info.alias}'/>
+</portlet:renderURL>">
+import CA reply</a></td>
+<td><a href="<portlet:renderURL>
+</portlet:renderURL>">
+keystore list</a></td>
+</tr>
+</table>
+<br/>
+</c:if>
+
+<c:set var="certs" value="${requestScope['org.apache.geronimo.console.certs']}"/>
+
+<c:forEach items="${certs}" var="cert">
+<table>
+<th>Certificate Info</th>
+<th><c:out value="${requestScope['org.apache.geronimo.console.cert.file.enc']}"/></th>
+<tr>
+<td>Version:</td>
+<td><c:out value="${cert.version}"/></td>
+</tr>
+<tr>
+<td>Subject:</td>
+<td><c:out value="${cert.subjectDN.name}"/></td>
+</tr>
+<tr>
+<td>Issuer:</td>
+<td><c:out value="${cert.issuerDN.name}"/></td>
+</tr>
+<tr>
+<td>Serial Number:</td>
+<td><c:out value="${cert.serialNumber}"/></td>
+</tr>
+<tr>
+<td>Valid From:</td>
+<td><c:out value="${cert.notBefore}"/></td>
+</tr>
+<tr>
+<td>Valid To:</td>
+<td><c:out value="${cert.notAfter}"/></td>
+</tr>
+<tr>
+<td>Signature Alg:</td>
+<td><c:out value="${cert.sigAlgName}"/></td>
+</tr>
+<tr>
+<td>Public Key Alg:</td>
+<td><c:out value="${cert.publicKey.algorithm}"/></td>
+</tr>
+<tr>
+<c:forEach items="${cert.criticalExtensionOIDs}" var="extoid">
+<tr>
+<td>critical ext: </td>
+<td><c:out value="${extoid}"/></td>
+</tr>
+</c:forEach>
+<c:forEach items="${cert.nonCriticalExtensionOIDs}" var="extoid">
+<tr>
+<td>non-critical ext: </td>
+<td><c:out value="${extoid}"/></td>
+</tr>
+</c:forEach>
+</table>
+<br/>
+</c:forEach>
\ No newline at end of file

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreHelp.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreHelp.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreHelp.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreHelp.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,87 @@
+ <p>This portlet allows the user to list public key certificates, import trusted certificates,
generate a key pair, generate a Certificate Signing Request (CSR) and import a Certificate
Authority (CA) reply. This portlet also provides information about the type of keystore, the
number of key pairs and trusted certificates stored in the keystore (the keystore size), and
the location of the keystore.<br>
+  <br>
+  From the main portlet, the user can &quot;view&quot; a trusted certificate or 
+  key pair. <br>
+  <br>
+  <span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7; text-decoration:
underline; font-weight: bold;">import trusted certificate</span></p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="20">&nbsp;</td>
+    <td>If the user has a trusted certificate, it can be imported using the&quot;import
trusted certificate&quot; tool. Browse for the certificate file, click on the &quot;View
Certificate&quot; button, enter an alias, in the&quot;Alias&quot; text box, then
click on the &quot;Import&quot; button. &quot;Cancel&quot; at any time before
clicking on &quot;Import.&quot; </td>
+  </tr>
+</table>
+<p><span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7; text-decoration:
underline; font-weight: bold;">generate key pair</span></p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="20">&nbsp;</td>
+    <td><p>This tool allows the user to generate a public/private key pair. This
key pair could be used later to create a trusted certificate. Fill in the text boxes and click
on the &quot;submit&quot; button to generate the key pair. All fields can be blanked
out by clicking &quot;reset.&quot; To generate the key pair, click on &quot;submit.&quot;
The fields are defined as follows:</p>
+      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top">Alias</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">A
name to identify the key pair.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top">Validity</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">The
number of days the key pair will remain valid. This field requires a number to be entered.</td>
+        </tr>
+      </table>
+      <p> The following fields are X.500 Distinguished Names.</p>
+      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top">Common Name (CN)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Common
name of a person, such as, Joe Smith.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
align="right" valign="top"> Organizational Unit(OU)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Small
organization, e.g., department or division, for example, Sales.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top"> Organization Name(ON)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Large
organization, such as the company name.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top"> Locality (L)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">City
name, e.g., El Segundo.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top"> State (ST)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">State
name, e.g., California or CA.</td>
+        </tr>
+        <tr>
+          <td class="MediumBackground" style="padding: 10px 10px 10px 5px; color: #1E1E52;"
width="150" align="right" valign="top"> Country (C)</td>
+          <td class="LightBackground" style="padding: 10px 5px 10px 10px" valign="top">Two-letter
country code, e.g., US.</td>
+        </tr>
+      </table>    </td>
+  </tr>
+</table>
+<p><span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7; text-decoration:
underline; font-weight: bold;">view</span></p>
+<table width="100%"  border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td width="20">&nbsp;</td>
+    <td><p>To view a key pair or certificate, click on the &quot;view&quot;
link to the left of it. If the user is viewing a key pair, the &quot;view&quot; pane
provides access to three more links &quot;generate CSR&quot;, &quot;import CA
reply&quot;, and &quot;keystore list&quot; which are defined next:</p>
+	  <br /><span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7;
text-decoration: underline; font-weight: bold;">generate CSR</span><br />
+      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
+        <tr>
+          <td width="20">&nbsp;</td>
+          <td>This tool generates a Certificate Signing Request. The CSR can be sent
to a Certificate Authority (CA), such as Verisign. To submit the CSR to a CA follow the CA's
instructions. After the CA sends back a reply, the Gluecode Standard Edition console can be
used to import it via the &quot;import CA reply&quot; tool.</td>
+        </tr>
+      </table>
+	  <br /><span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7;
text-decoration: underline; font-weight: bold;">import CA reply</span><br />
+      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
+        <tr>
+          <td width="20">&nbsp;</td>
+          <td>After the Certificate Authority (CA) has sent back a signed, trusted
certificate, it can be imported into the Gluecode Standard Edition server. Cut and paste the
Certificate Authority's reply in this window and click on &quot;Save.&quot; To cancel
an import click on &quot;Cancel&quot; before doing a &quot;Save.&quot; </td>
+        </tr>
+      </table>
+	  <br /><span style="padding: 10px 10px 10px 5px; font-size: 10px; color: #546BC7;
text-decoration: underline; font-weight: bold;">keystore list</span><br />
+      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
+        <tr>
+          <td width="20">&nbsp;</td>
+          <td>This link returns the user to the main Certificate management portlet.</td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+<p><br>
+</p>

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreNormal.jsp?rev=326211&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreNormal.jsp
(added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/certmanager/viewKeyStoreNormal.jsp
Tue Oct 18 12:35:10 2005
@@ -0,0 +1,70 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<portlet:defineObjects/>
+
+<c:set var="ksinfo" value="${requestScope['org.apache.geronimo.console.keystore.infobean']}"/>
+
+<table cellpadding="1%">
+<th>keystore-type</th>
+<th>keystore-provider</th>
+<th>keystore-location</th>
+<th>keystore-size</th>
+<tr>
+<td align="center"><c:out value="${requestScope['org.apache.geronimo.console.keystore.type']}"/></td>
+<td align="center"><c:out value="${requestScope['org.apache.geronimo.console.keystore.provider']}"/></td>
+<td align="center"><c:out value="${requestScope['org.apache.geronimo.console.keystore.location']}"/></td>
+<td align="center"><c:out value="${requestScope['org.apache.geronimo.console.keystore.size']}"/></td>
+</tr>
+</table>
+
+<br/>
+
+<table cellspacing="5">
+<tr>
+<td><b>Tools:</b></td>
+<td>
+<a href="<portlet:renderURL><portlet:param name='action' value='tools-import-trusted-certificate'/>
+import trusted certificate
+</portlet:renderURL>">import trusted certificate</a>
+</td>
+<td>
+<a href="<portlet:renderURL><portlet:param name='action' value='tools-generate-key-pair'/>
+generate key pair
+</portlet:renderURL>">generate key pair</a>&nbsp;
+</td>
+<%--
+<td>
+<a href="<portlet:renderURL><portlet:param name='action' value='tools-change-keystore-password'/>
+change keystore password
+</portlet:renderURL>">change keystore password</a>&nbsp;
+</td>
+--%>
+</tr>
+</table>
+
+<br/>
+
+<%--
+<c:set var="ksitems" value="${ksinfo.keystoreEntries}"/>
+--%>
+
+<c:set var="ksitems" value="${requestScope['org.apache.geronimo.console.keystore.list']}"/>
+
+<table cellspacing="5">
+<th>details</th>
+<th>alias-name</th>
+<th>alias-type</th>
+<th>modified</th>
+<c:forEach items="${ksitems}" var="ksi">
+<tr>
+<td align="center" valign="top"><a href="<portlet:renderURL>
+<portlet:param name="action" value="view-keystore-entry-details"/>
+<portlet:param name="alias" value="${ksi.alias}"/>
+</portlet:renderURL>">view</a></td>
+<td align="center" valign="top"><c:out value="${ksi.alias}"/></td>
+<td align="center" valign="top"><c:out value="${ksi.type}"/></td>
+<td align="center" valign="top"><c:out value="${ksi.created}"/></td>
+</tr>
+</c:forEach>
+</table>
\ No newline at end of file



Mime
View raw message