Skip to main content
Ylli_Seitaj
Staff
Staff
May 13, 2025

Troubleshooting Tip: Cannot upload FortiToken on Microsoft Entra ID due to error "Invalid base32 encoding due to illegal character 9 serial number FTK210XXXXXXXXXX

  • May 13, 2025
  • 0 replies
  • 539 views
Description This article describes an issue where a FortiToken cannot be uploaded on Microsoft Entra ID due to the format of the secret key.
Scope FortiToken.
Solution

The following error is received while trying to upload the FortiToken on Microsoft Entra ID and the value of the secret key is in hexadecimal:

1.png

 

To solve the issue, convert the secret key from hexadecimal to base32. This can be done with the tomeko.net converter.

2.png

 

In the example above, the secret key in hexadecimal is '2646E1400D483AF3309D84659147E65D0A937126'. After conversion, the base32 secret key is 'EZDOCQANJA5PGME5QRSZCR7GLUFJG4JG'.

 

Copy the secret key base32 and paste it on the text file of the FortiToken. Uploading the file to the Microsoft Entra ID will then be successful.