public static function setCasServerCACert($cert, $validate_cn = true)
    {
        phpCAS :: traceBegin();
        phpCAS::_validateClientExists();

        try {
            self::$_PHPCAS_CLIENT->setCasServerCACert($cert, $validate_cn);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }

        phpCAS :: traceEnd();
    }
public static function setCasServerCACert($cert, $validate_cn = true)
    {
        phpCAS :: traceBegin();
        phpCAS::_validateClientExists();

        try {
            self::$_PHPCAS_CLIENT->setCasServerCACert($cert, $validate_cn);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }

        phpCAS :: traceEnd();
    }
public static function setCasServerCACert ( $ cert , $ validate_cn = true ) { phpCAS :: traceBegin ( ) ; phpCAS :: _validateClientExists ( ) ; try { self :: $ _PHPCAS_CLIENT -> setCasServerCACert ( $ cert , $ validate_cn ) ; } catch ( Exception $ e ) { phpCAS :: error ( get_class ( $ e ) . ': ' . $ e -> getMessage ( ) ) ; } phpCAS :: traceEnd ( ) ; }
Set the certificate of the CAS server CA and if the CN should be properly
verified.

@param string $cert        CA certificate file name
@param bool   $validate_cn Validate CN in certificate (default true)

@return void
Set the certificate of the CAS server CA and if the CN should be properly verified .