Skip to main content
tyang
Staff
Staff
Oct 8, 2026 3:31 PM UTC

Technical Tip: Verifying MD5 checksums of FortiNAC image and backup files on FortiNAC and Windows

Description

This article describes how to calculate and compare MD5 checksums of image files, database backups, and migration archives on FortiNAC and Windows to identify file changes during download or transfer.

Scope

FortiNAC CentOS and FortiNAC-F.

Solution

Compare the MD5 checksum before and after transferring a file between FortiNAC and Windows.

For backup files, calculate the reference checksum from the completed original backup before transferring it. Wait until backup creation, download, or transfer has finished before performing the comparison.

  1. Calculate the MD5 checksum on FortiNAC.


Connect to the FortiNAC appliance through SSH or the console.

For FortiNAC-F running FortiNAC-OS, log in as admin and enter the shell:

execute enter-shell


Run the applicable command below. Replace the example filename and path with the actual file being checked.

Image file:

md5sum "/bsc/campusMgrUpdates/image.out"


Example output:

fnac1-thomas:/bsc/campusMgrUpdates$ md5sum "/bsc/campusMgrUpdates/FNAC_ESX-v7-build6108-FORTINET.out"
670b31fa603cde1dcd8d068d4ccf1ace  /bsc/campusMgrUpdates/FNAC_ESX-v7-build6108-FORTINET.out


ZIP migration archive:

md5sum "/home/admin/centos-backup-xxx.zip"


GZ database backup:

md5sum "/storage/bsc/backups/database/FortiNAC_DataBase_BackUp_YYYY_MM_DD_HH_MM_SS_hostname.gz"


Example output:

fnac1-thomas:/$ md5sum "/storage/bsc/backups/database/FortiNAC_DataBase_BackUp_2026_10_08_14_47_00_fnac1-thomas.gz"
864c09f82cefa7b6ab651d0e4fe36716  /storage/bsc/backups/database/FortiNAC_DataBase_BackUp_2026_10_08_14_47_00_fnac1-thomas.gz


Use the actual backup filename. This database backup location is documented in Technical Tip: How to export a database backup from FortiNAC-F. If the file has been copied elsewhere, use its current location.

The output displays a 32-character MD5 checksum followed by the filename. Record the checksum for comparison.

These commands read the files without modifying them. No service restart is required.

  1. Calculate the MD5 checksum on Windows.


Use either Windows Command Prompt or PowerShell to check the corresponding copy of the file.

  • Windows Command Prompt:


Image file:

certutil -hashfile "C:\path\image.out" MD5


Example output:

PS D:\ISO\FNAC_images\7.6.7> certutil.exe -hashfile .\FNAC_ESX-v7-build6108-FORTINET.out MD5
MD5 hash of .\FNAC_ESX-v7-build6108-FORTINET.out:
670b31fa603cde1dcd8d068d4ccf1ace
CertUtil: -hashfile command completed successfully.


ZIP migration archive:

certutil -hashfile "C:\path\centos-backup-xxx.zip" MD5


GZ database backup:

certutil -hashfile "C:\path\FortiNAC_DataBase_BackUp_YYYY_MM_DD_HH_MM_SS_hostname.gz" MD5


Example output:

PS C:\SFTP_Root> certutil.exe -hashfile FortiNAC_DataBase_BackUp_2026_10_08_14_47_00_fnac1-thomas.gz MD5
MD5 hash of FortiNAC_DataBase_BackUp_2026_10_08_14_47_00_fnac1-thomas.gz:
864c09f82cefa7b6ab651d0e4fe36716
CertUtil: -hashfile command completed successfully.


  • Windows PowerShell:


Image file:

Get-FileHash "C:\path\image.out" -Algorithm MD5


Example output:

PS D:\ISO\FNAC_images\7.6.7> Get-FileHash ".\FNAC_ESX-v7-build6108-FORTINET.out" -Algorithm MD5

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
MD5             670B31FA603CDE1DCD8D068D4CCF1ACE                                       D:\ISO\FNAC_images\7.6.7\FNAC_ESX...


ZIP migration archive:

Get-FileHash "C:\path\centos-backup-xxx.zip" -Algorithm MD5


GZ database backup:

Get-FileHash "C:\path\FortiNAC_DataBase_BackUp_YYYY_MM_DD_HH_MM_SS_hostname.gz" -Algorithm MD5


Example output:

PS C:\SFTP_Root> Get-FileHash "FortiNAC_DataBase_BackUp_2026_10_08_14_47_00_fnac1-thomas.gz" -Algorithm MD5

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
MD5             864C09F82CEFA7B6AB651D0E4FE36716                                       C:\SFTP_Root\FortiNAC_DataBase_Ba...


Record the value in the Hashfield. Specify -Algorithm MD5 because PowerShell uses SHA256 by default.

Replace all example paths and filenames with the actual file locations. The same commands also apply to .iso files.

  1. Compare the MD5 checksums.


The same unchanged file produces the same MD5 checksum on FortiNAC and Windows. Uppercase and lowercase hexadecimal letters represent the same value and do not affect the comparison.

  • Checksums match: No difference was detected by the MD5 comparison. Confirm that the image or backup is appropriate for the target platform and version before following the applicable upgrade or restore procedure.

  • Checksums differ: The compared files have different contents. Confirm that both commands reference the intended file, then download or transfer a fresh copy from the original source. Calculate and compare the checksums again before using the file.


Notes:

  • For .zip and .gz files, compare the compressed archive itself at both locations. Extracting or recompressing an archive can change its checksum even when the extracted contents remain the same.

  • A matching MD5 checksum does not establish version compatibility, validate the internal backup contents, or guarantee a successful restore.


Related article:

Technical Tip: Upgrade FortiNAC-F through the CLI

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024