src/Certificate/BaseCertificateProvider.php
protected function storeRemoteCertificate($certificateChainUri)
    {
        $certificateContents = $this->getRemoteCertificateChain($certificateChainUri);

        $parsedCertificate = $this->parseCertificate($certificateContents);

        // If the certificate we are getting from the URL doesn't have a valid SAN present, this is not secure!
        if (!$this->verifyCertificateSubjectAltNamePresent($parsedCertificate)) {
            throw new InvalidCertificateException("The remote certificate doesn't contain a valid SANs in the signature");
        }

        $this->persistCertificate($certificateChainUri, $certificateContents);

        return $this->retrieveCertificateFromStore($certificateChainUri);
    }
protected function storeRemoteCertificate($certificateChainUri)
    {
        $certificateContents = $this->getRemoteCertificateChain($certificateChainUri);

        $parsedCertificate = $this->parseCertificate($certificateContents);

        // If the certificate we are getting from the URL doesn't have a valid SAN present, this is not secure!
        if (!$this->verifyCertificateSubjectAltNamePresent($parsedCertificate)) {
            throw new InvalidCertificateException("The remote certificate doesn't contain a valid SANs in the signature");
        }

        $this->persistCertificate($certificateChainUri, $certificateContents);

        return $this->retrieveCertificateFromStore($certificateChainUri);
    }
@param string $certificateChainUri

@return string|null

@throws InvalidCertificateException