/**
  * Ensures the certificates are readable and that the service can sign and unencrypt using them
  */
 private function validateCertificates()
 {
     $signingCertFile = $this->service->getSigningCertPath();
     if (true === is_null($signingCertFile) || false === $this->isReadable($signingCertFile)) {
         $this->errors[] = _t('RealMeSetupTask.ERR_CERT_NO_SIGNING_CERT', '', '', array('const' => 'REALME_SIGNING_CERT_FILENAME'));
     } elseif (true === is_null($this->service->getSigningCertContent())) {
         // Signing cert exists, but doesn't include BEGIN/END CERTIFICATE lines, or doesn't contain the cert
         $this->errors[] = _t('RealMeSetupTask.ERR_CERT_SIGNING_CERT_CONTENT', '', '', array('file' => $this->service->getSigningCertPath()));
     }
     $mutualCertFile = $this->service->getMutualCertPath();
     if (true === is_null($mutualCertFile) || false === $this->isReadable($mutualCertFile)) {
         $this->errors[] = _t('RealMeSetupTask.ERR_CERT_NO_MUTUAL_CERT', '', '', array('const' => 'REALME_MUTUAL_CERT_FILENAME'));
     }
 }