The easiest way to find the serial number is through the pfSense WebGUI dashboard .
Run dmidecode -t system | grep Serial to pull the serial number directly from the hardware BIOS. pfsense serial number
On the main dashboard, look for the System Information widget. The easiest way to find the serial number