Commit 2a3dfda7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added warning when RSA cert not valid for server domain was found. JM-968

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7057 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8d0a7c85
...@@ -2124,3 +2124,4 @@ stun.settings.primaryport = Prim\u00e1rn\u00ed port ...@@ -2124,3 +2124,4 @@ stun.settings.primaryport = Prim\u00e1rn\u00ed port
stun.settings.secondaryport = Sekund\u00e1rn\u00ed stun.settings.secondaryport = Sekund\u00e1rn\u00ed
stun.settings.enabled = Povoleno stun.settings.enabled = Povoleno
stun.settings.change = Zm\u011bna stun.settings.change = Zm\u011bna
index.certificate-warning=Found RSA certificate that is not valid for the server domain.
\ No newline at end of file
...@@ -2115,4 +2115,5 @@ upgrade.database.interbase_db=Warning: automatic upgrades of Interbase are not s ...@@ -2115,4 +2115,5 @@ upgrade.database.interbase_db=Warning: automatic upgrades of Interbase are not s
timezone.choose=Choose Time Zone timezone.choose=Choose Time Zone
setup.sidebar.profile=Profile Settings setup.sidebar.profile=Profile Settings
sidebar.profile-settings=Profile Settings sidebar.profile-settings=Profile Settings
sidebar.profile-settings.descr=Click to configure user and group profile settings sidebar.profile-settings.descr=Click to configure user and group profile settings
\ No newline at end of file index.certificate-warning=Found RSA certificate that is not valid for the server domain.
\ No newline at end of file
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
## Added key: 'setup.finished.wait' ## Added key: 'setup.finished.wait'
## Added section 'mediaproxy.*' ## Added section 'mediaproxy.*'
## Added section 'stun.*' ## Added section 'stun.*'
##
## 3.2.1
## Added key: 'index.certificate-warning'
# Wildfire # Wildfire
...@@ -726,6 +730,7 @@ index.properties=Server Properties ...@@ -726,6 +730,7 @@ index.properties=Server Properties
index.uptime=Server Uptime: index.uptime=Server Uptime:
index.version=Version: index.version=Version:
index.home=Wildfire Home: index.home=Wildfire Home:
index.certificate-warning=Found RSA certificate that is not valid for the server domain.
index.server_name=Server Name: index.server_name=Server Name:
index.server_port=Server Ports index.server_port=Server Ports
index.server_ip=IP:Port, Security: index.server_ip=IP:Port, Security:
......
...@@ -2121,4 +2121,5 @@ stun.settings.secondaryaddress = Direcci\u00f3n Secundaria ...@@ -2121,4 +2121,5 @@ stun.settings.secondaryaddress = Direcci\u00f3n Secundaria
stun.settings.primaryport = Puerto Primario stun.settings.primaryport = Puerto Primario
stun.settings.secondaryport = Puerto Secundario stun.settings.secondaryport = Puerto Secundario
stun.settings.enabled = Habilitado stun.settings.enabled = Habilitado
stun.settings.change = Cambiar stun.settings.change = Cambiar
\ No newline at end of file index.certificate-warning=Se ha encontrado un certificado RSA que no es v\u00e1lido para el dominio del servidor.
\ No newline at end of file
...@@ -2118,4 +2118,5 @@ user.read_only=Not allowed: the user account system is read-only. ...@@ -2118,4 +2118,5 @@ user.read_only=Not allowed: the user account system is read-only.
timezone.choose=Choose Time Zone timezone.choose=Choose Time Zone
setup.sidebar.profile=Profile Settings setup.sidebar.profile=Profile Settings
sidebar.profile-settings=Profile Settings sidebar.profile-settings=Profile Settings
sidebar.profile-settings.descr=Click to configure user and group profile settings sidebar.profile-settings.descr=Click to configure user and group profile settings
\ No newline at end of file index.certificate-warning=Found RSA certificate that is not valid for the server domain.
\ No newline at end of file
...@@ -2087,4 +2087,5 @@ user.summary.last-logout=Last Logout ...@@ -2087,4 +2087,5 @@ user.summary.last-logout=Last Logout
user.read_only=Not allowed: the user account system is read-only. user.read_only=Not allowed: the user account system is read-only.
setup.sidebar.profile=Profile Settings setup.sidebar.profile=Profile Settings
sidebar.profile-settings=Profile Settings sidebar.profile-settings=Profile Settings
sidebar.profile-settings.descr=Click to configure user and group profile settings sidebar.profile-settings.descr=Click to configure user and group profile settings
\ No newline at end of file index.certificate-warning=Found RSA certificate that is not valid for the server domain.
\ No newline at end of file
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
<%@ page import="org.jivesoftware.wildfire.session.ClientSession" %> <%@ page import="org.jivesoftware.wildfire.session.ClientSession" %>
<%@ page import="org.jivesoftware.util.LocaleUtils" %> <%@ page import="org.jivesoftware.util.LocaleUtils" %>
<%@ page import="org.jivesoftware.wildfire.container.AdminConsolePlugin" %> <%@ page import="org.jivesoftware.wildfire.container.AdminConsolePlugin" %>
<%@ page import="org.jivesoftware.util.CertificateManager" %>
<%@ page import="org.jivesoftware.wildfire.net.SSLConfig" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
...@@ -176,6 +178,9 @@ ...@@ -176,6 +178,9 @@
<fmt:message key="index.server_name" /> <fmt:message key="index.server_name" />
</td> </td>
<td class="c2"> <td class="c2">
<% if (!CertificateManager.isRSACertificate(SSLConfig.getKeyStore(), XMPPServer.getInstance().getServerInfo().getName())) {%>
<img src="images/warning-16x16.gif" width="16" height="16" border="0" alt="<fmt:message key="index.certificate-warning" />">&nbsp;
<% } %>
${webManager.serverInfo.name} ${webManager.serverInfo.name}
</td> </td>
</tr> </tr>
......
...@@ -96,7 +96,18 @@ ...@@ -96,7 +96,18 @@
</head> </head>
<body> <body>
<% if (((AdminConsolePlugin) pluginManager.getPlugin("admin")).isRestartNeeded()) { %> <% if (!CertificateManager.isRSACertificate(SSLConfig.getKeyStore(), XMPPServer.getInstance().getServerInfo().getName())) { %>
<div class="warning">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td class="jive-icon-label">
<fmt:message key="index.certificate-warning"/>
</td></tr>
</tbody>
</table>
</div><br>
<% } else if (((AdminConsolePlugin) pluginManager.getPlugin("admin")).isRestartNeeded()) { %>
<div class="warning"> <div class="warning">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
<tbody> <tbody>
......
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