diff options
author | Michael Tänzer <neo@nhng.de> | 2013-04-16 22:01:41 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2013-04-16 22:01:41 +0200 |
commit | 65688bd8f4aebb189dd3a92b4e200ec9904a571a (patch) | |
tree | 8ce5051ee282e8b6c83db89a81a31a7eea236536 /pages/account | |
parent | 0d934bd089bb91d15cc1cb6872d425405101f484 (diff) | |
download | cacert-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>
Diffstat (limited to 'pages/account')
-rw-r--r-- | pages/account/6.php | 4 |
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(); |