Filter:

Submit Search

# Customizing the certificate of the SMC server web interface

Customizing the certificate

The certificate that the SMC server web administration interface presents can be customized in two ways:

1. Log in to the SMC server via the console of your hypervisor or in SSH.
2. Replace the files server.crt and server.key located in the folder `/etc/certs/uiserver` with your own certificates and private key. File permissions must remain the same.
3. Restart the server with the command `nrestart smc`.

- or -

1. Log in to the SMC server via the console of your hypervisor or in SSH.
2. Overwrite the environment variable `SMC_UI_SERVER_CERT_PATH` in the file /data/config/fwadmin-env.conf.local with the path of the folder that contains your own certificate and private key.
3. Restart the server with the command `nrestart smc`.

Reinitializing the certificate

To go back to factory settings:

1. Use the command `smc-gen-autosigned-cert` by indicating the destination folder and subject of the certificate. This command makes it possible to generate the SSL certificate presented to the web browser one more time. This certificate is self-signed.

   smc-gen-autosigned-cert /etc/certs/uiserver/ <certificate subject>

2. Restart the server with the command `nrestart smc`.