IMP_Smime::certToHTML PHP Method

certToHTML() public method

Converts a PEM format certificate to readable HTML version.
public certToHTML ( string $cert ) : string
$cert string PEM format certificate.
return string HTML detailing the certificate.
    public function certToHTML($cert)
    {
        return $this->_smime->certToHTML($cert);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Generates HTML output for the S/MIME key.
  *
  * @return string  The HTML output.
  */
 protected function _outputSmimeKey()
 {
     if (empty($this->_impsmime)) {
         return array();
     }
     $raw_text = $this->_getPartStream($this->_mimepart->getMimeId());
     try {
         $sig_result = $this->_impsmime->verifySignature($this->_mimepart->replaceEOL($raw_text, Horde_Mime_Part::RFC_EOL));
     } catch (Horde_Exception $e) {
         return array();
     }
     return array($this->_mimepart->getMimeId() => array('data' => $this->_impsmime->certToHTML($sig_result->cert), 'type' => 'text/html; charset=' . $this->getConfigParam('charset')));
 }
All Usage Examples Of IMP_Smime::certToHTML