Fortinet white logo
Fortinet white logo

CLI Reference

config system certificate local

config system certificate local

Use this command to manage local certificates.

Before you begin:

  • You must have read-write permission for system settings.

Syntax

config system certificate local

edit <name>

set certificate-file <certificate-filename>

set comments <string>

set csr <csr>

set password <passwd>

set private-key-file <key-filename>

next

end

certificate

Modify "contents" in certificate and private-key to "file".

comments

Optional administrator note.

csr

Paste the contents of a CSR file between quotation marks as shown in the example.

password

Password that was used to encrypt the file. The FortiADC system uses the password to decrypt and install the certificate.

private-key

Paste the contents of a key file between quotation marks as shown in the example.

Example

FortiADC-VM # config system certificate local

FortiADC-VM (local) # edit "csr"

FortiADC-VM (csr) # set private-key-file csr.key

FortiADC-VM (csr) # set csr-file csr.csr

FortiADC-VM (csr) # end

FortiADC-VM # config system certificate local

FortiADC-VM (local) # edit "new-local"

FortiADC-VM (new-local) # set private-key-file new-local.key

FortiADC-VM (new-local) # set certificate-file new-local.cer

FortiADC-VM (new-local) # end

See also

config system certificate local

config system certificate local

Use this command to manage local certificates.

Before you begin:

  • You must have read-write permission for system settings.

Syntax

config system certificate local

edit <name>

set certificate-file <certificate-filename>

set comments <string>

set csr <csr>

set password <passwd>

set private-key-file <key-filename>

next

end

certificate

Modify "contents" in certificate and private-key to "file".

comments

Optional administrator note.

csr

Paste the contents of a CSR file between quotation marks as shown in the example.

password

Password that was used to encrypt the file. The FortiADC system uses the password to decrypt and install the certificate.

private-key

Paste the contents of a key file between quotation marks as shown in the example.

Example

FortiADC-VM # config system certificate local

FortiADC-VM (local) # edit "csr"

FortiADC-VM (csr) # set private-key-file csr.key

FortiADC-VM (csr) # set csr-file csr.csr

FortiADC-VM (csr) # end

FortiADC-VM # config system certificate local

FortiADC-VM (local) # edit "new-local"

FortiADC-VM (new-local) # set private-key-file new-local.key

FortiADC-VM (new-local) # set certificate-file new-local.cer

FortiADC-VM (new-local) # end

See also