{%
    if IsLocalFile then
        if ValidateResult == 1 then
            echo('Warning: The certificate fails to meet certain security standards, such as the signature algorithm, key length, basic constraints, or key usage. Exercise caution when using it.\n')
        end
        echo('Import certificate successfully')
    end

    if State == 'New' then
        echo('Downloading...')
    end

    if State == 'Exception' or State == 'Killed' or State == 'Cancelled' then
        echo('Import certificate failed.')
    end

    if State == 'Completed' then
        local cjson = require 'cjson'
        local ok, result = pcall(cjson.decode, Parameters)
        if ok and result.ValidateResult == 1 then
            echo('Warning: The certificate fails to meet certain security standards, such as the signature algorithm, key length, basic constraints, or key usage. Exercise caution when using it.\n')
        end
        echo('Import certificate successfully')
    end

%}