How to view IPSec Tunnel PSK
hi,
i'm trying to document our FG. how do i view/check the configured pre-shared key string?
can this be viewed in the GUI or via CLI only? where in the GUI or what command to use?
hi,
i'm trying to document our FG. how do i view/check the configured pre-shared key string?
can this be viewed in the GUI or via CLI only? where in the GUI or what command to use?
Preshared keys are saved as encrypted keys once you save the config and we cannot see the decrypted value. If you lost the key, the ideal option is to change the keys on both sides of tunnel.
You can see the encrypted keys in below location on GUI/CLI.
config vpn ipsec phase1-interface
edit "Test"
set interface "port3"
set peertype any
set net-device disable
set proposal aes128-sha256 aes256-sha256 aes128-sha1 aes256-sha1
set comments "VPN: Test (Created by VPN wizard)"
set wizard-type static-fortigate
set remote-gw 10.10.10.1
set psksecret ENC E/W7Rt2omWmzvZOX1qGGf7ice4JdqdsSxbPLfAkKGDV9tywVxPkHVFXZE9sszT75k7gdcdXldz5uTofF60OmMYdqHBxULCAAAbNLtZ/2DBecLwoEY5Q9a3NqNmU5ZDSsC7OClaCbeaTZMAPsN2ev+yAyBaxfw9stMMGDfx7Jdy+P/YBJyJ3BR+IxIRaWBsV4vvtUiw==
next
end
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.