Technical Tip: How to configure secure LDAPS communication with FortiNAC
| Description | This article describes how to configure secure LDAPS communication with FortiNAC. |
| Scope | FortiNAC-F. |
| Solution | Some environments may require secure LDAPS communication with FortiNAC. A few things need to be taken into consideration before switching the LDAP 'Security Protocol:' 'SSL'.
Instructions to import the certificate:
scp username@<remote-scp>:/copy/from/file /paste/directory fnac-f:~$ execute enter-shell fnac-f:~$ scp root@192.168.108.40:/tmp/labdc-DC1-cert.cer /home/admin The authenticity of host '192.168.108.40 (192.168.108.40)' can't be established. ED25519 key fingerprint is SHA256:cy8+. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.108.40' (ED25519) to the list of known hosts. root@192.168.108.40's password: labdc-DC1-cert.cer 100% 1577 2.5MB/s 00:00
fnac-f:~$ cd /home/admin/ fnac-f:~$ ll total 24 4 drwx------ 2 admin admin 4096 Oct 24 12:12 .ssh/ 4 -rw-r--r-- 1 admin admin 1577 Oct 24 12:12 labdc-DC1-cert.cer
fnac-f:~$ keytool -import -trustcacerts -alias ldap_client -file /home/admin/labdc-DC1-cert.cer -keystore .keystore Enter keystore password: Re-enter new password:
Trust this certificate? [no]: yes Certificate was added to keystore fnac-f:~$
fnac-f:~$ keytool -list -v -keystore .keystore Enter keystore password: <---- It is necessary to enter the ^8Bradford%23 password.
Keystore type: jks Keystore provider: SUN
Your keystore contains 1 entry
Alias name: ldap_client Creation date: Oct 24, 2024 Entry type: trustedCertEntry
Owner: Issuer: CN=labdc-DC1-CA, DC=labdc, DC=local
Note: In an HA configuration, follow the same steps on the secondary FortiNAC. At the moment, certificates are not synced by design; they need to be installed on the server, not in the cluster. This procedure can be accomplished without failover to the secondary device. Failover control takes around 10 to 15 minutes to be completed.
Related articles: |


