private function readCertificateFromDisk($path)
    {
        $cert = @file_get_contents($path);
        if ($cert === false) {
            throw new \Exception('Can not read certificate from location: '.$path, 1);
        }

        return $cert;
    }
private function readCertificateFromDisk($path)
    {
        $cert = @file_get_contents($path);
        if ($cert === false) {
            throw new \Exception('Can not read certificate from location: '.$path, 1);
        }

        return $cert;
    }
private function readCertificateFromDisk ( $ path ) { $ cert = @ file_get_contents ( $ path ) ; if ( $ cert === false ) { throw new \ Exception ( 'Can not read certificate from location: ' . $ path , 1 ) ; } return $ cert ; }
Read certificate from provided path.

@param string $path Path to certificate.

@return string|bool Certificate content.
@throws \Exception Exception in case certificate cannot be read.
Read certificate from provided path .