private function mailCert($authKey)
 {
     try {
         $cert = $this->ca->getCert($authKey);
         if (isset($cert)) {
             $mm = new MailManager($this->person, Config::get_config('sys_from_address'), Config::get_config('system_name'), Config::get_config('sys_header_from_address'));
             $mm->setSubject($this->translateTag('l10n_mail_subject', 'download'));
             $mm->setBody($this->translateTag('l10n_mail_body', 'download'));
             $mm->addAttachment($cert, 'usercert.pem');
             if (!$mm->sendMail()) {
                 Framework::error_output($this->translateMessageTag('downl_err_sendmail'));
                 return false;
             }
         } else {
             return false;
         }
     } catch (ConfusaGenException $e) {
         Framework::error_output($this->translateMessageTag('downl_err_sendmail2') . " " . htmlentities($e->getMessage()));
         return false;
     }
     Framework::success_output($this->translateMessageTag('downl_suc_mail'));
 }