Modifying and Re-generating the Default Certificate using CLI

Modify and re-generate the SmartZone controller's default certificate using CLI commands. The CLI provides options to update parameters such as the validity period and subject details, after which the controller automatically renews the certificate.
To modify and re-generate the server certificate through CLI, perform the following -
  1. Connect to the controller's SSH and enter the configuration mode.
    The command enters the configuration mode.
  2. In the configuration mode, execute the command cert-store cert <cert name>.
    The command enters certificate configuration mode on the controller, allowing modification of default certificate parameters and displays the validity range, 124 to 824 days. The validity period can be set to a minimum of 124 days (approximately four months) to a maximum of 1098 days (approximately three years). After manually configuring the days for renewing the certificates, few of the services cannot be utilized for some time, but they resume within 7-10 minutes.
    Node1# config
    Node1(config)# cert-store cert mgmt_cert
     
    Node1(config-cert)#
      days            Set expired days 124-1098 or default(824), works on Default Certificate only and other configuration will be ignored
      description     Set Description
      do              Do command
      end             End the current configuration session and return to privileged EXEC mode
      exit            Exit from the EXEC
      help            Display this help message
      inter-cert      Upload Intermediate CA Certificate
      name            Set Certificate name
      no              No commands
      passphrase      Set Key Passphrase
      private-key     Set Private key
      root-cert       Upload Root CA Certificate
      server-cert     Upload Server Certificate
  3. In the certifcate configuration mode, execute the command (config-cert)# <days>.
    Node1(config-cert)# days
    Node1(config-cert)# days
    <days>     Expired days 124-1098 or default(824), works on Default Certificate 
    only and other configuration will be ignored
  4. Enter the modified days.
    Node1(config-cert)# days
    Node1(config-cert)# days 124
    Node1(config-cert)# end
    Do you want to update this context configuration (or input 'no' to cancel)? [yes/no]: yes
  5. Sets the validity period of the regenerated default certificate to the entered <days>. To check the modified certificate days, execute the command show running-config cert-store cert.
    GSS-N1# show running-config cert-store cert
       No.   Name                Description                             Has Root CA  # of Inter Cert
       ----- ------------------- --------------------------------------- ------------ ----------------
       1     Default Certificat                                          No           0
             e - RSA
       2     Default Certificat                                          No           0
             e - ECDSA P256
       3     Default Certificat                                          No           0
             e - RSA 3072
       4     Default Certificat                                          No           0
             e - ECDSA P384