Troubleshooting Tip: FortiGate AWS PAYG (On-Demand) VM registration process fails
| Description | This article explains how to resolve registration issues for AWS-based FortiGate-VMs in the FortiCare Asset Portal. |
| Scope | FortiOS, AWS. |
| Solution | On AWS, there are two types of license models available for FortiGate-VMs:
This document AWS Administration Guide shows how to register the FortiGate-VM with FortiCloud via the Asset Management Portal. However, on some occasions this process might fail at step 7 and instead of requesting the AWS account ID to finish the process, the Asset Portal will show the following:
Although the message indicates that the registration process has completed, when returning to the asset list the FortiGate VM serial number cannot be found. This issue may occur if the FortiGate-VM was unable to connect to FortiCare during the boot process to update its serial number. In such cases, the following error may be observed on the FortiGate console:
Error 1:
FortiGate-VM64-AWS login: AWS instance ID: i-11111111111 Requesting FortiCare license: FGTAWSXXXXXXXXXX Curl FortiCare failed, 28
Error 2:
System is starting... Serial number is FGTAWSXXXXXXXXXX FortiGate-VM64-AWS login: AWS instance ID: i-0a6755931b1XXXXXXX Requesting FortiCare license: FGTAWSXXXXXXXXXXXX DNS resolve error
FortiGate-VM64-AWS (interim)# config vpn certificate local FortiGate-VM64-AWS (local) (interim)# get Fortinet_Factory Name : Fortinet_Factory Password : * Private-key : * Certificate : Subject: C = US, ST = California, L = Sunnyvale, O = Fortinet, OU = FortiGate, CN = FortiGate, emailAddress = support@fortinet.com Issuer: C = US, ST = California, L = Sunnyvale, O = Fortinet, OU = Certificate Authority, CN = fortinet-subca2001, emailAddress = support@fortinet.com Valid from: 2016-11-30 19:58:17 GMT Valid to: 2056-11-20 19:58:17 GMT [...]
To force FortiGate to re-attempt the FortiCare registration, it is required to run the following CLI command (which will also prompt the FortiGate to reboot): execute vm-license <FGTAWSXXXXXXXXXXXX> <----- Replace with the relevant FortiGate-VM serial number.
Monitor the console of the FortiGate VM to ensure there are no errors during the bootup. Once FortiGate is up again, check that the certificate Fortinet_Factory bootup has the S/N in the CN field, and then proceed with the registration process as described in the link shared at the beginning of this ticket. |
