FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
tana
Staff
Staff
Article Id 190328

Description

 

This article describes how to troubleshoot an issue when receiving a response code 400 error upon uploading the license.

 

Scope

 

FortiGate.

Solution


If the error message 'Invalid license file' is received after uploading the correct VM license file.
For example error on update debug logs:

 

2021-08-05 12:38:32 upd_pkg_verify_setup_rsp[1115]-Unexpected setup rsp code 400
2021-08-05 12:38:32 upd_act_setup_with_action[220]-Received invalid setup rsp

 

  1. Make sure the VM is registered under the correct FortiCare account.

  2. Disable FortiGuard Anycast:

    config system fortiguard
        set fortiguard-anycast disable
    end

    If it does not work with the above, also by enabling the protocol UDP:

    config system fortiguard
        set protocol udp
    end

     

     

  3. Check the default auth-cert is Fortinet_Factory:

    config sys global
    get | grep auth-cert

    auth-cert: Fortinet_Factory


 

Wait for it for about 4 hours or more and then recheck it to see if it has been changed to be valid.


If the following solutions does not solve the issue, collect the debug logs and contact technical support for further in-depth troubleshooting.

To collect debug logs from CLI:

 

diag deb reset
diag deb app update -1
diag deb enable
exec update-now

 

Related article:

Technical Tip: FGT-VM License management, validation, and troubleshooting