bug 1017: If the certificate was signed by the class3, include the subroot
authorMichael Tänzer <neo@nhng.de>
Tue, 12 Feb 2013 22:30:22 +0000 (23:30 +0100)
committerMichael Tänzer <neo@nhng.de>
Tue, 12 Feb 2013 22:30:22 +0000 (23:30 +0100)
when installing

Signed-off-by: Michael Tänzer <neo@nhng.de>
pages/account/6.php

index 90affac..596aa38 100644 (file)
@@ -79,6 +79,9 @@ if (array_key_exists('format', $_REQUEST)) {
                header("Content-Disposition: inline; filename=\"${fname}.cer\"");
                
                echo $cert;
+               if ($row['rootcert'] === 2) {
+                       readfile(dirname(__FILE__).'/../../www/certs/class3.der');
+               }
                exit;
        }
 } else {