Signer/CertificateRequestSigner.php
public function signCertificateRequest(CertificateRequest $certificateRequest)
    {
        $csrObject = $this->createCsrWithSANsObject($certificateRequest);

        if (!$csrObject || !openssl_csr_export($csrObject, $csrExport)) {
            throw new CSRSigningException(sprintf('OpenSSL CSR signing failed with error: %s', openssl_error_string()));
        }

        return $csrExport;
    }
public function signCertificateRequest(CertificateRequest $certificateRequest)
    {
        $csrObject = $this->createCsrWithSANsObject($certificateRequest);

        if (!$csrObject || !openssl_csr_export($csrObject, $csrExport)) {
            throw new CSRSigningException(sprintf('OpenSSL CSR signing failed with error: %s', openssl_error_string()));
        }

        return $csrExport;
    }
public function signCertificateRequest ( CertificateRequest $ certificateRequest ) { $ csrObject = $ this -> createCsrWithSANsObject ( $ certificateRequest ) ; if ( ! $ csrObject || ! openssl_csr_export ( $ csrObject , $ csrExport ) ) { throw new CSRSigningException ( sprintf ( 'OpenSSL CSR signing failed with error: %s' , openssl_error_string ( ) ) ) ; } return $ csrExport ; }
Generate a CSR from the given distinguishedName and keyPair.

@param CertificateRequest $certificateRequest

@return string
Generate a CSR from the given distinguishedName and keyPair .