Fortinet black logo

CLI Reference

vpn certificate local export

vpn certificate local export

Use this command to export a local certificate from the FortiGate unit to a TFTP server.

Digital certificates are used to ensure that both participants in a communications session are trustworthy, prior to an encrypted VPN tunnel being set up between the participants. The local certificate is the certificate that the FortiGate unit uses to authenticate itself to other devices.

Syntax

execute vpn certificate local export tftp  Export local certificate or certificate request to a TFTP server.
        {string}   Local certificate name.
            {string}   Certificate file type ('cer'|'p12'|'csr').
                {string}   File name on the TFTP server.
                    {ip}   IP address of TFTP server.

Example

Use the following command to export the local certificate request generated in the above example from the FortiGate unit to a TFTP server. The example uses the file name testcert for the downloaded file and the TFTP server address 192.168.21.54.

execute vpn certificate local export branch_cert testcert 192.168.21.54

vpn certificate local export

Use this command to export a local certificate from the FortiGate unit to a TFTP server.

Digital certificates are used to ensure that both participants in a communications session are trustworthy, prior to an encrypted VPN tunnel being set up between the participants. The local certificate is the certificate that the FortiGate unit uses to authenticate itself to other devices.

Syntax

execute vpn certificate local export tftp  Export local certificate or certificate request to a TFTP server.
        {string}   Local certificate name.
            {string}   Certificate file type ('cer'|'p12'|'csr').
                {string}   File name on the TFTP server.
                    {ip}   IP address of TFTP server.

Example

Use the following command to export the local certificate request generated in the above example from the FortiGate unit to a TFTP server. The example uses the file name testcert for the downloaded file and the TFTP server address 192.168.21.54.

execute vpn certificate local export branch_cert testcert 192.168.21.54