Creating a certificate for a secure backup
You require a TLS certificate to create and restore a secure backup.
About this task
You can create a certificate on the appliance, or upload a certificate created elsewhere. The certificate is required for a secure backup. Both the certificate and the certificate's private key are required for a secure restore.
You use the keygen command to generate a certificate. When using keygen you must specify additional options to copy the generated certificate and private key files to the temporary: directory so that you can subsequently download them to a location where you can use them for a secure restore. You should delete the certificate files from temporary: after you have downloaded them.
After you generate (or upload) the certificate, you must use it to create a certificate object on the appliance. It is this certificate object that you use to create the secure backup.
Procedure
Example
mqa(config-crypto)# keygen CN "My Backup Cert" gen-sscert file-name mybackupcert export-key export-sscert
keygen: Generating a 2048 bit RSA private key
keygen: This could take some time, please be patient
keygen: Saved private key in 'cert:///mybackupcert-privkey.pem'
keygen: Saved private key in 'temporary:///mybackupcert-privkey.pem' [INSECURE DIRECTORY]
keygen: Saved certificate signing request in 'temporary:///mybackupcert.csr'
keygen: Saved self-signed certificate in 'cert:///mybackupcert-sscert.pem'
keygen: Saved self-signed certificate in 'temporary:///mybackupcert-sscert.pem'
The files mybackupcert-privkey.pem, mybackupcert.csr, and mybackupcert-sscert.pem are created and copied to the temporary: directory.
mqa(config-crypto)# certificate mybackupcert cert:///mybackupcert-sscert.pem
The
object mybackupcert
is created and can then be used to create a secure backup of
the appliance.