Analogic\ACME\Lescript::getCsrContent PHP Метод

getCsrContent() приватный метод

private getCsrContent ( $csrPath )
    private function getCsrContent($csrPath)
    {
        $csr = file_get_contents($csrPath);
        preg_match('~REQUEST-----(.*)-----END~s', $csr, $matches);
        return trim(Base64UrlSafeEncoder::encode(base64_decode($matches[1])));
    }