How to restore/recreate the default server certificate

How to restore/recreate the default server certificate

Important: This procedure should be performed when there are no Backups/DR/Cleanup/S3 Copy running.
Only perform this steps if you know how to use SSH  and Linux commands

If you need to restore/recreate the default server certificate , here are the instructions:
  1. Connect to the N2WS instance over SSH (for example using putty or MobaXterm)
  2. You will need to use "sudo" to reach the cert folder. Please keep ownership and permissions of the files.
    1. sudo su
  3. Go to the folder /opt/n2wsoftware/cert 
    1. cd /opt/n2wsoftware/cert 
  4. move the existing files to new name (cpm_server.crt and cpm_server.key), for example
    1. mv cpm_server.crt backup_cpm_server.crt.bkp
    2. mv cpm_server.key backup_cpm_server.key.bkp
  5. Stop/Start the instance.