summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-04-16 22:01:41 +0200
committerMichael Tänzer <neo@nhng.de>2013-04-16 22:01:41 +0200
commit65688bd8f4aebb189dd3a92b4e200ec9904a571a (patch)
tree8ce5051ee282e8b6c83db89a81a31a7eea236536
parent0d934bd089bb91d15cc1cb6872d425405101f484 (diff)
downloadcacert-devel-65688bd8f4aebb189dd3a92b4e200ec9904a571a.tar.gz
cacert-devel-65688bd8f4aebb189dd3a92b4e200ec9904a571a.tar.xz
cacert-devel-65688bd8f4aebb189dd3a92b4e200ec9904a571a.zip
bug 1017: Read the certificate before sending it
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--pages/account/6.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/account/6.php b/pages/account/6.php
index 6168db9..2123e2b 100644
--- a/pages/account/6.php
+++ b/pages/account/6.php
@@ -96,6 +96,10 @@ if (array_key_exists('format', $_REQUEST)) {
_("Download the certificate in DER format")."</a></p>\n";
echo "<br /><br /><br />";
+
+ // Allow to directly copy and paste the cert in PEM format
+ $crtname=escapeshellarg($row['crt_name']);
+ $cert = `/usr/bin/openssl x509 -in $crtname -outform PEM`;
echo "<pre>$cert</pre>";
showfooter();