src/MediaServices/Authentication/AzureAdClientAsymmetricKey.php
public function getCertificate($justbase64 = true)
    {
        if ($justbase64) {
            $str=str_replace("\n", "", $this->_certs['cert']);
            $str = str_replace("-----BEGIN CERTIFICATE-----","", $str);
            $str = str_replace("-----END CERTIFICATE-----","", $str);
            return $str;
        }

        return $this->_certs['cert'];
    }
public function getCertificate($justbase64 = true)
    {
        if ($justbase64) {
            $str=str_replace("\n", "", $this->_certs['cert']);
            $str = str_replace("-----BEGIN CERTIFICATE-----","", $str);
            $str = str_replace("-----END CERTIFICATE-----","", $str);
            return $str;
        }

        return $this->_certs['cert'];
    }
public function getCertificate ( $ justbase64 = true ) { if ( $ justbase64 ) { $ str = str_replace ( "\n" , "" , $ this -> _certs [ 'cert' ] ) ; $ str = str_replace ( "-----BEGIN CERTIFICATE-----" , "" , $ str ) ; $ str = str_replace ( "-----END CERTIFICATE-----" , "" , $ str ) ; return $ str ; } return $ this -> _certs [ 'cert' ] ; }
Get the X.509 certificate
@param boolean $justbase64 if true (the default), returns the certificate as plain base64 string (without headers nor formatting)
@return string the certificate
Get the X . 509 certificate