Description |
This article describes a scenario when attempting to configure a VPN pre-shared key (PSK) on a FortiGate device by copying it from another firewall’s configuration file, but doing so results in a ‘password too long’ or ‘command failure’ error. |
Scope | FortiOS. |
Solution |
While copying the encrypted pre-shared key from another configuration, the following error is observed
config vpn ipsec phase1-interface edit test_vpn set psksecret ENC 1XO7F/RuFrR3BIX10IZDO6njcWUlvhwSYb6XXXXXXXXXXXXXXXXX lsFUTaHjZNtKGFTu1H3hAtTLXgl31j64AoQNEPgDvc/1hfY3mJ+JcvBrY7Gzuf8vCSL0iWA19w/ GS8j7u2QiaRmzO71r51hnv4wSszzhWdzSG7XvsD5lSOLTYELRZ1PzHkBtBbllmMjY3dkVA lsFUTaHjZNtKGFTu1H3hAtTLXgl31j64AoQNEPgDvc/1hfY3mJ+JcvBrY7Gzuf8vCSL0iWA19w/ GS8j7u2QiaRmzO71r51hnv4wSszzhWdzSG7XvsD5lSOLTYELRZ1PzHkBtBbllmMjY3dkVA value parse error before '1XO7F/RuFrR3BIX10IZDO6njcWUlvhwSYb6M4
This error message appears when Private Data Encryption is enabled in the configuration file:
Private Data Encryption feature enabled. Passwords and private keys used in certificates on the FortiGate are encrypted using a predefined private key.
To resolve this issue, either:
For more details regarding private data encryption, refer to the following article: Technical Tip: How to enable private-data-encryption feature on a standalone FortiGate |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.