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