summaryrefslogtreecommitdiffstats
path: root/base/server/tomcat7
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2016-03-03 12:14:09 +1100
committerFraser Tweedale <ftweedal@redhat.com>2016-03-03 12:14:09 +1100
commit8beb5cfa4cd81fbf47ea8cd6839b793c2a12284e (patch)
tree4cd112918c180e41ad560a0bef1e22c7c8f79520 /base/server/tomcat7
parent3ff245abcf900ec30839d67a0120be42e7acff92 (diff)
downloadpki-8beb5cfa4cd81fbf47ea8cd6839b793c2a12284e.tar.gz
pki-8beb5cfa4cd81fbf47ea8cd6839b793c2a12284e.tar.xz
pki-8beb5cfa4cd81fbf47ea8cd6839b793c2a12284e.zip
Avoid XML parse fail with double-hyphen in hostname
server.xml contains metadata read by pkidaemon which includes URLs, in XML comments. If the hostname contains `--', the parse fails. Instead of XML comments, put this information in XML Processing instructions[1], which allows double-hyphens to be used. [1] https://www.w3.org/TR/REC-xml/#NT-PI Fixes: https://fedorahosted.org/pki/ticket/1260
Diffstat (limited to 'base/server/tomcat7')
-rw-r--r--base/server/tomcat7/conf/server.xml20
1 files changed, 10 insertions, 10 deletions
diff --git a/base/server/tomcat7/conf/server.xml b/base/server/tomcat7/conf/server.xml
index 7deb8a201..55c626d6c 100644
--- a/base/server/tomcat7/conf/server.xml
+++ b/base/server/tomcat7/conf/server.xml
@@ -27,45 +27,45 @@
<!-- DO NOT REMOVE - Begin PKI Status Definitions -->
<!-- CA Status Definitions -->
-<!--
+<?pkidaemon
Unsecure URL = http://[PKI_HOSTNAME]:[PKI_UNSECURE_PORT]/ca/ee/ca
Secure Agent URL = https://[PKI_HOSTNAME]:[PKI_AGENT_SECURE_PORT]/ca/agent/ca
Secure EE URL = https://[PKI_HOSTNAME]:[PKI_EE_SECURE_PORT]/ca/ee/ca
Secure Admin URL = https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/ca/services
PKI Console Command = pkiconsole https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/ca
Tomcat Port = [TOMCAT_SERVER_PORT] (for shutdown)
--->
+?>
<!-- KRA Status Definitions -->
-<!--
+<?pkidaemon
Secure Agent URL = https://[PKI_HOSTNAME]:[PKI_AGENT_SECURE_PORT]/kra/agent/kra
Secure Admin URL = https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/kra/services
PKI Console Command = pkiconsole https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/kra
Tomcat Port = [TOMCAT_SERVER_PORT] (for shutdown)
--->
+?>
<!-- OCSP Status Definitions -->
-<!--
+<?pkidaemon
Unsecure URL = http://[PKI_HOSTNAME]:[PKI_UNSECURE_PORT]/ocsp/ee/ocsp/<ocsp request blob>
Secure Agent URL = https://[PKI_HOSTNAME]:[PKI_AGENT_SECURE_PORT]/ocsp/agent/ocsp
Secure EE URL = https://[PKI_HOSTNAME]:[PKI_EE_SECURE_PORT]/ocsp/ee/ocsp/<ocsp request blob>
Secure Admin URL = https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/ocsp/services
PKI Console Command = pkiconsole https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/ocsp
Tomcat Port = [TOMCAT_SERVER_PORT] (for shutdown)
--->
+?>
<!-- TKS Status Definitions -->
-<!--
+<?pkidaemon
Secure Agent URL = https://[PKI_HOSTNAME]:[PKI_AGENT_SECURE_PORT]/tks/agent/tks
Secure Admin URL = https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/tks/services
PKI Console Command = pkiconsole https://[PKI_HOSTNAME]:[PKI_ADMIN_SECURE_PORT]/tks
Tomcat Port = [TOMCAT_SERVER_PORT] (for shutdown)
--->
+?>
<!-- TPS Status Definitions -->
-<!--
+<?pkidaemon
Unsecure URL = http://[PKI_HOSTNAME]:[PKI_UNSECURE_PORT]/tps
Secure URL = https://[PKI_HOSTNAME]:[PKI_SECURE_PORT]/tps
Unsecure PHONE HOME = http://[PKI_HOSTNAME]:[PKI_UNSECURE_PORT]/tps/phoneHome
Secure PHONE HOME = https://[PKI_HOSTNAME]:[PKI_SECURE_PORT]/tps/phoneHome
Tomcat Port = [TOMCAT_SERVER_PORT] (for shutdown)
--->
+?>
<!-- DO NOT REMOVE - End PKI Status Definitions -->
<Server port="[TOMCAT_SERVER_PORT]" shutdown="SHUTDOWN">