summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2015-07-31 17:28:57 -0600
committerMatthew Harmsen <mharmsen@redhat.com>2015-07-31 18:21:55 -0600
commit6999197b067af920b53c75e17dc20181ba49e997 (patch)
tree697905a8591aa232e761c42adffdd88b70cafba8 /base
parent7c4bc2480c0cb0b4bb816ec090e9673bdddce047 (diff)
downloadpki-6999197b067af920b53c75e17dc20181ba49e997.tar.gz
pki-6999197b067af920b53c75e17dc20181ba49e997.tar.xz
pki-6999197b067af920b53c75e17dc20181ba49e997.zip
remove extra space from Base 64 encoded cert displays
- PKI TRAC Ticket #1522 - CA UI adds extra space in Base 64 encoded certificate display
Diffstat (limited to 'base')
-rw-r--r--base/ca/shared/webapps/ca/agent/ca/displayBySerial.template8
-rw-r--r--base/ca/shared/webapps/ca/agent/ca/displayBySerial2.template4
-rw-r--r--base/ca/shared/webapps/ca/ee/ca/displayBySerial.template8
-rw-r--r--base/ca/shared/webapps/ca/ee/ca/displayBySerial2.template4
-rw-r--r--base/ca/shared/webapps/ca/ee/ca/displayCaCert.template8
-rw-r--r--base/kra/shared/webapps/kra/agent/kra/displayBySerial2.template4
6 files changed, 18 insertions, 18 deletions
diff --git a/base/ca/shared/webapps/ca/agent/ca/displayBySerial.template b/base/ca/shared/webapps/ca/agent/ca/displayBySerial.template
index 2bb2bfab7..3b58a4779 100644
--- a/base/ca/shared/webapps/ca/agent/ca/displayBySerial.template
+++ b/base/ca/shared/webapps/ca/agent/ca/displayBySerial.template
@@ -179,11 +179,11 @@ The following format can be used to install this certificate into a server.
Base 64 encoded certificate
</font>
<p><pre>
------BEGIN CERTIFICATE-----
<SCRIPT type="text/javascript">
+document.writeln('-----BEGIN CERTIFICATE-----');
document.write(result.header.certChainBase64);
+document.writeln('-----END CERTIFICATE-----');
</SCRIPT>
------END CERTIFICATE-----
</pre>
<font size=-1 face="PrimaSans BT, Verdana, sans-serif">
@@ -191,11 +191,11 @@ document.write(result.header.certChainBase64);
Base 64 encoded certificate with CA certificate chain in pkcs7 format
</font>
<p><pre>
------BEGIN CERTIFICATE CHAIN-----
<SCRIPT type="text/javascript">
+document.writeln('-----BEGIN CERTIFICATE CHAIN-----');
document.write(result.header.pkcs7ChainBase64);
+document.writeln('-----END CERTIFICATE CHAIN-----');
</SCRIPT>
------END CERTIFICATE CHAIN-----
</pre>
<br><p>
diff --git a/base/ca/shared/webapps/ca/agent/ca/displayBySerial2.template b/base/ca/shared/webapps/ca/agent/ca/displayBySerial2.template
index 4a193e324..7923f4153 100644
--- a/base/ca/shared/webapps/ca/agent/ca/displayBySerial2.template
+++ b/base/ca/shared/webapps/ca/agent/ca/displayBySerial2.template
@@ -97,11 +97,11 @@ The following format can be used to install this certificate into a server.
Base 64 encoded certificate
</font>
<p><pre>
------BEGIN CERTIFICATE CHAIN-----
<SCRIPT type="text/javascript">
+document.writeln('-----BEGIN CERTIFICATE CHAIN-----');
document.write(result.header.certChainBase64);
+document.writeln('-----END CERTIFICATE CHAIN-----');
</SCRIPT>
------END CERTIFICATE CHAIN-----
</pre>
<br><p>
diff --git a/base/ca/shared/webapps/ca/ee/ca/displayBySerial.template b/base/ca/shared/webapps/ca/ee/ca/displayBySerial.template
index e9b4d72bf..d1e65fa63 100644
--- a/base/ca/shared/webapps/ca/ee/ca/displayBySerial.template
+++ b/base/ca/shared/webapps/ca/ee/ca/displayBySerial.template
@@ -104,11 +104,11 @@ The following format can be used to install this certificate into a server.
Base 64 encoded certificate
</font>
<p><pre>
------BEGIN CERTIFICATE-----
<SCRIPT LANGUAUGE="JavaScript">
+document.writeln('-----BEGIN CERTIFICATE-----');
document.write(result.header.certChainBase64);
+document.writeln('-----END CERTIFICATE-----');
</SCRIPT>
------END CERTIFICATE-----
</pre>
<font size=-1 face="PrimaSans BT, Verdana, sans-serif">
@@ -116,11 +116,11 @@ document.write(result.header.certChainBase64);
Base 64 encoded certificate with CA certificate chain in pkcs7 format
</font>
<p><pre>
------BEGIN CERTIFICATE-----
<SCRIPT LANGUAUGE="JavaScript">
+document.writeln('-----BEGIN CERTIFICATE CHAIN-----');
document.write(result.header.pkcs7ChainBase64);
+document.writeln('-----END CERTIFICATE CHAIN-----');
</SCRIPT>
------END CERTIFICATE-----
</pre>
<br><p>
diff --git a/base/ca/shared/webapps/ca/ee/ca/displayBySerial2.template b/base/ca/shared/webapps/ca/ee/ca/displayBySerial2.template
index f8f306499..7e6678f0b 100644
--- a/base/ca/shared/webapps/ca/ee/ca/displayBySerial2.template
+++ b/base/ca/shared/webapps/ca/ee/ca/displayBySerial2.template
@@ -97,11 +97,11 @@ The following format can be used to install this certificate into a server.
Base 64 encoded certificate
</font>
<p><pre>
------BEGIN CERTIFICATE-----
<SCRIPT LANGUAUGE="JavaScript">
+document.writeln('-----BEGIN CERTIFICATE-----');
document.write(result.header.certChainBase64);
+document.writeln('-----END CERTIFICATE-----');
</SCRIPT>
------END CERTIFICATE-----
</pre>
<br><p>
diff --git a/base/ca/shared/webapps/ca/ee/ca/displayCaCert.template b/base/ca/shared/webapps/ca/ee/ca/displayCaCert.template
index 4e93919f5..49a91af11 100644
--- a/base/ca/shared/webapps/ca/ee/ca/displayCaCert.template
+++ b/base/ca/shared/webapps/ca/ee/ca/displayCaCert.template
@@ -43,9 +43,9 @@ if (result.header.displayFormat == "chain") {
document.writeln('<center><b>' + result.header.subjectdn);
document.writeln('</b></center><p></font><br>');
document.writeln('<pre>');
- document.writeln('-----BEGIN CERTIFICATE-----');
- document.writeln(result.header.chainBase64);
- document.writeln('-----END CERTIFICATE-----');
+ document.writeln('-----BEGIN CERTIFICATE CHAIN-----');
+ document.write(result.header.chainBase64);
+ document.writeln('-----END CERTIFICATE CHAIN-----');
document.writeln('</pre>');
} else if (result.header.displayFormat == "individual") {
if (result.recordSet.length == 0) {
@@ -86,7 +86,7 @@ function displayCertificate(cert,i)
document.writeln('');
document.writeln('<pre>');
document.writeln('-----BEGIN CERTIFICATE-----');
- document.writeln(cert.base64);
+ document.write(cert.base64);
document.writeln('-----END CERTIFICATE-----');
document.writeln('</pre>');
document.writeln('<table border="0" cellspacing="2" cellpadding="2" width="100%">');
diff --git a/base/kra/shared/webapps/kra/agent/kra/displayBySerial2.template b/base/kra/shared/webapps/kra/agent/kra/displayBySerial2.template
index 30af980ec..06bef2f9f 100644
--- a/base/kra/shared/webapps/kra/agent/kra/displayBySerial2.template
+++ b/base/kra/shared/webapps/kra/agent/kra/displayBySerial2.template
@@ -92,11 +92,11 @@ The following format can be used to install this certificate into a server.
Base 64 encoded certificate
</font>
<p><pre>
------BEGIN CERTIFICATE-----
<SCRIPT LANGUAUGE="JavaScript">
+document.writeln('-----BEGIN CERTIFICATE-----');
document.write(result.header.certChainBase64);
+document.writeln('-----END CERTIFICATE-----');
</SCRIPT>
------END CERTIFICATE-----
</pre>
<br><p>