Backups
Save a certificate
To save a certificate:
-
Get the certificate ID.
Management consoleCLI- In the management console, select the folder where the certificate is located.
- From the list of services, select Certificate Manager.
- Copy the contents of the ID field for the certificate you want to save.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter.-
View a description of the CLI command to get the certificate list:
yc cm certificate list --help
-
Run the command:
yc cm certificate list
-
Get the contents of the certificate.
CLIIf you don't have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter.-
View a description of the CLI command to get the certificate contents:
yc cm certificate content --help
-
Run the command:
yc cm certificate content \ --id <certificate ID> \ --chain <path to the file to save the chain to> \ --key <path to the file to save the key to> ...
Keep the resulting files in a secure place for long-term storage.
-
-
Repeat the procedure for each certificate you want to back up.
Restore a certificate
Note
You can't restore an expired certificate.
To restore a user certificate from the certificate chain and key files:
-
Prepare the files with the certificate contents.
-
Import the certificate.
Management consoleCLI- In the management console, select the folder where the certificate will be restored.
- In the list of services, select Certificate Manager.
- Click Add certificate.
- In the menu that opens, select User certificate.
- In the window that opens, enter a name for the certificate in the Name field.
- (optional) In the Description field, enter a description for the certificate.
- In the Intermediate certificate chain field, click Add chain.
- Choose how to add it: File.
- Click Select file and specify the certificate chain file.
- Click Add.
- In the Private key field, click Add private key.
- Select how to add your certificate: File or Text.
- Click Select file and specify the private key file.
- Click Add.
- Click Create.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter.-
View a description of the command:
yc cm certificate create --help
-
Run the command:
yc cm certificate create \ --name <certificate name> \ --chain <path to the certificate chain file> \ --key <path to the private key file> ...
The ID of the restored certificate will be different from the ID that the certificate had when it was saved.
-
Repeat the process for each certificate you want to restore.
The saved Let's Encrypt® certificate becomes a user certificate after it's restored. To renew this certificate, download its latest version yourself.