Create a user certificate
To create a user certificate:
Management console
CLI
API
- In the management console, select the folder to create your certificate in.
- 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 the name of the certificate in the Name field.
- (optional) In the Description field, enter a description for the certificate.
- In the Certificate field, click Add certificate.
- Select how to add your certificate: File or Text.
- Click Add.
- In the Intermediate certificate chain field, click Add chain.
- Select how to add your certificate: File or Text.
- Click Add.
- In the Private key field, click Add private key.
- Select how to add your certificate: File or Text.
- 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 certificate-manager certificate create --help
-
Run the command:
yc certificate-manager certificate create \ --name mycert \ --chain mycert.pem \ --key mykey.pem
Command parameters:
--name
: Certificate name.--chain
: Path to the certificate chain file.--key
: Path to the file of the certificate private key.
Command results:
id: fpqmg47avvimp7rvmp30 folder_id: b1g7gvsi89m34qmcm3ke created_at: "2020-09-15T06:54:44.916325Z" name: mycert type: IMPORTED domains: - example.com status: ISSUED issuer: CN=example.com subject: CN=example.com serial: c32fd55592a376635fa53d9aea677caae6bf08f updated_at: "2020-09-15T06:54:44.916325Z" issued_at: "2020-09-15T06:54:44.916325Z" not_after: "2021-09-15T06:48:26Z" not_before: "2020-09-15T06:48:26Z"
To create a certificate, use the create method for the Certificate resource.
A new certificate with the Issued
status appears in the certificate list.