Create a keystore for SSL or TLS
When using SSL or TLS security protocols for communications between FortiNAC and some servers (such as LDAP directory, Fortinet EMS and Nozomi servers) a security certificate may be required. The need for the certificate is dependent upon the configuration of the directory. In most cases, FortiNAC automatically imports the certificate it needs. However, if this is not the case, use the following steps to import the certificate.
Certificate Import Instructions:
- Once the certificate from the CA has been received, login to the FortiNAC server CLI as root.
Note: If using NAC-OS, login to CLI as admin then run:execute enter-shell
- Copy the file to the
/home/admin
directory. - Use the keytool command to import the certificate into a keystore file.
keytool -import -trustcacerts -alias ldap_client -file /home/admin/MainCertificate.der -keystore .keystore
Example using certificate file named MainCertificate.der:
keytool -import -trustcacerts -alias ldap_client -file MainCertificate.der -keystore .keystore
For additional information on using the keytool key and certificate management tool go to the Sun web site java.sun.com. - When the script responds with the Trust this certificate? prompt, type Yes and press Enter.
- At the prompt for the keystore password, type in the following password and press Enter ^8Bradford%23
- To view the certificate, navigate to the
/home/admin
directory and type the following:
keytool -list -v -keystore .keystore - Type the password used to import the certificate and press Enter.
- Verify connection to the directory. In the Administration UI, navigate to System > Settings > Authentication > LDAP.
- Double click the directory model and click the Validate Credentials button.
If unable to connect, restart the FortiNAC control process to clear any cached information:
- In the FortiNAC CLI, type:
sudo shutdownCampusMgr
- Wait 30 seconds
- Type:
sudo startupCampusMgr