summaryrefslogtreecommitdiff
path: root/pages/account/6.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/account/6.php')
-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();