FortiClient Mac OS X 7.0 problem with Client cert auth
Hi,
we use FortiClient on Mac OS X to connect to our customers VPNs.Till this week I used macOS 10.15/Catalina with forticlient 6.0 and everything was working well. Now I upgraded to macOS 12/Monterey which didn't work with forticlient 6.0, thus upgraded client to 7.0.5.0166
Connecting to VPNs without certificate auth works well, but i'm unable to get VPN with client cert auth working. Same setup (certificate, password) works well on windows (and also worked well on previous setup - macOS 10.15/client 6.0). The problem might be related to special characters in certificate name, the VPN setup looks like:

 however connection window shows incorrect client certificate name:

On old system / forticlient 6.0 everything seems to be right (connection window had proper characters). Once I tried new forticlient 7 on old macOS 10.15 and it didn't work. After downgrade to client 6.0 everythig was OK again (no change in certificate)
I tried reimporting the certificate to macOS, didn't help. I have more client certificates in keychain, they all show good names in setup window bud bad (escaped) in login window
Log file does't show anything interesting (to me)
===
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:58 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:58 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:27:59 [FortiTray:DEBG] AppDelegate.swift:151 Received message: reload config
20220506 21:27:59 [FortiTray:EROR] ConfigManager.swift:1574 Config file "/Library/Application Support/Fortinet/FortiClient/conf/epctrl.plist" not exist
20220506 21:28:04 [FortiTray:DEBG] VPNMessageBridge.m:468 Request VPN statistics
20220506 21:28:10 [FortiTray:INFO] VPNMessageBridge.m:417 Request VPN connect
20220506 21:28:10 [FortiTray:DEBG] VPNMessageBridge.m:445 VPN profile: Gxxxxx
20220506 21:28:10 [FortiTray:INFO] VpnManager.swift:1068 Connect VPN: Gxxxxx
20220506 21:28:10 [FortiTray:INFO] VpnManager.swift:857 Start VPN: Gxxxx
20220506 21:28:10 [FortiTray:INFO] VpnManager.swift:642 VPN connecting
20220506 21:28:10 [FortiTray:DEBG] vpnconnection.mm:540 Server URL: https://ssl.xxxxxx:443
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:215 ApiEncMethod: 0
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:217 ApiRemoteAuthTimeout: 30
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:219 ApiServerSalt: 6538c2b8
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:220 flag: 223
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:314 Send authentication request
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:364 /remote/logincheck returns 405
20220506 21:28:10 [FortiTray:INFO] sslvpn.cpp:378 Check response
20220506 21:28:10 [FortiTray:DEBG] vpnconnection.mm:400 Stop process.
20220506 21:28:10 [FortiTray:DEBG] vpnconnection.mm:432 Cancel http. http task is running: No
20220506 21:28:10 [FortiTray:INFO] VpnManager.swift:1582 Notification: Cancel input
20220506 21:28:10 [FortiTray:INFO] sslvpn_bridge.mm:77 Login failed. Result: 0
20220506 21:28:10 [FortiTray:INFO] VpnManager.swift:617 VPN disconnected because of error: Login failed. Insufficient credential(s). Please check the password, client certificate, etc.
20220506 21:28:10 [FortiTray:DEBG] VPNMessageBridge.m:468 Request VPN statistics
===
Can anyone help with this ?
Thanks. Tomas
