private function _getCA($id)
 {
     $url = E3_PROV_URL_TRUSTSTORE . '/certs/' . rawurlencode($id);
     $reply = $this->restClient->makeCall($url, "GET");
     $xml = simplexml_load_string($reply->getPayload());
     if ($reply->getHTTPCode() === "200") {
         $cert = Cert::fromXML($xml->cert);
         // get certificate expiration date
         $content = (string) $xml->cert->content;
         $ts = $this->parseCertificateExpirationDate($content);
         if ($ts) {
             $cert->setExpirationDate($ts);
         }
         return $cert;
     } else {
         throw new Exception(!empty($xml->error) ? $xml->error->errorText : UNDEFINED_ERROR_TEXT);
     }
 }