Set the local path to the root certificate bundle.
public setRootCertificatePath ( string $path ) | ||
$path | string | The local path to the bundle. |
public function create(Horde_Injector $injector) { if (empty($GLOBALS['conf']['activesync']['logging']['level'])) { $level = Horde_ActiveSync_Wbxml::LOG_PROTOCOL; } else { $level = $GLOBALS['conf']['activesync']['logging']['level']; } $server = new Horde_ActiveSync($injector->getInstance('Horde_ActiveSyncBackend'), new Horde_ActiveSync_Wbxml_Decoder(fopen('php://input', 'r'), $level), new Horde_ActiveSync_Wbxml_Encoder(fopen('php://output', 'w+'), $level), $injector->getInstance('Horde_ActiveSyncState'), $injector->getInstance('Horde_Controller_Request')); $server->setSupportedVersion($GLOBALS['conf']['activesync']['version']); $server->setLogger(new Horde_Core_ActiveSync_Logger_Factory()); if (!empty($GLOBALS['conf']['openssl']['cafile'])) { $server->setRootCertificatePath($GLOBALS['conf']['openssl']['cafile']); } return $server; }