Administrative access using certificates
Certificates can be used for administrative authentication.
Generated key pairs can also be used for this authentication. See Public key SSH access for information about generating a key pair.
To log in to the FortiGate with a certificate private key:
-
On the PC, generate a certificate.
-
In FortiOS, import the PEM file for the remote certificate:
# execute vpn certificate remote import tftp certificate.pem 172.16.200.55
-
Display the imported remote certificate:
config certificate remote edit "REMOTE_Cert_1" next end
-
Apply the remote certificate to the administrative user:
config system admin edit "admin1" set accprofile "prof_admin" set vdom "root" set ssh-certificate "REMOTE_Cert_1" set password ************ next end
-
On the PC, verify that the administrator can log in to the FortiGate with the SSH certificate:
root@PC05:~# ssh -i certificate-private.pem admin1@172.16.200.1 FortiGate-101F $ get system status Version: FortiGate-101F v7.0.2,build0234,211019 (GA)