Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex IoT Core
    • All guides
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Exporting messages to Data Streams
    • Viewing the connection log
      • Creating a certificate
      • Managing registry certificates
      • Managing device certificates
      • Managing broker certificates
    • Viewing operations with the service's resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Getting a list of registry certificates
  • Adding a certificate
  • Deleting a certificate
  1. Step-by-step guides
  2. Managing certificates
  3. Managing registry certificates

Managing registry certificates

Written by
Yandex Cloud
Updated at May 13, 2025
  • Getting a list of registry certificates
  • Adding a certificate
  • Deleting a certificate

For devices and registries to begin exchanging data and commands, you need to log in. This section describes how to manage registry certificates for the appropriate authorization method.

Note

When using an X.509 certificate along with a password, the password has higher priority.

  • Viewing a list of registry certificates
  • Adding a certificate to a registry
  • Deleting a registry certificate

To access a registry, use its unique ID or name. For information about how to find the unique ID or name, see Getting information about registries.

Getting a list of registry certificates

Management console
CLI
API
  1. In the management console, select the folder where the registry is located.
  2. Select IoT Core.
  3. Select the registry.
  4. On the Overview page, go to the Certificates section.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

Get a list of registry certificates:

yc iot registry certificate list --registry-name my-registry

Result:

+------------------------------------------+---------------------+
|               FINGERPRINT                |     CREATED AT      |
+------------------------------------------+---------------------+
| 0f511ea32139178edf73afb953a9cc39******** | 2019-05-29 16:46:23 |
| 589ce1605019eeff7bb0992f290be0cd******** | 2019-05-29 16:40:48 |
+------------------------------------------+---------------------+

To get a list of registry certificates, use the listCertificates REST API method for the Registry resource or the RegistryService/ListCertificates gRPC API call.

Adding a certificate

Management console
CLI
Terraform
API

To add a certificate to a registry:

  1. In the management console, select the folder to add the registry certificate to.

  2. Select IoT Core.

  3. Select the required registry from the list.

  4. On the Overview page, go to the Certificates section and click Add certificate.

    • To add a file:

      1. Choose the File method.
      2. Click Attach file.
      3. Specify the certificate file on your computer and click Open.
      4. Click Add.
    • To add text:

      1. Choose the Text method.
      2. Insert the certificate body in the Content field.
      3. Click Add.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

Add a certificate to the registry:

yc iot registry certificate add \
  --registry-name my-registry \ # Registry name.
  --certificate-file registry-cert.pem # Path to the public part of the certificate.

Result:

registry_id: b91ki3851hab********
fingerprint: 589ce1605...
certificate_data: |
  -----BEGIN CERTIFICATE-----
  MIIE/jCCAuagAw...
  -----END CERTIFICATE-----
created_at: "2019-05-29T16:40:48.230Z"

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To add a certificate to a registry created using Terraform:

  1. In the configuration file, describe the parameters of the resources you want to create:

    • yandex_iot_core_registry: Registry parameters:
      • name: Registry name.
      • description: Registry description.
      • certificates: List of registry certificates for authorization using certificates.

    Example registry description in the Terraform configuration:

    resource "yandex_iot_core_registry" "my_registry" {
      name        = "test-registry"
      description = "test registry for terraform provider documentation"
    ...
      certificates = [
        file("<path_to_first_certificate_file>"),
        file("<path_to_second_certificate_file>")
      ]
    ...
    }
    

    For more information about the yandex_iot_core_registry resource parameters in Terraform, see the relevant provider documentation.

  2. In the command line, change to the folder where you edited the configuration file.

  3. Make sure the configuration file is correct using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    The terminal will display a list of resources with parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can verify registry certificates using the management console or this CLI command:

    yc iot registry certificate list --registry-name <registry_name>
    

To add a certificate to a registry, use the addCertificate REST API method for the Registry resource or the RegistryService/AddCertificate gRPC API call.

Deleting a certificate

Management console
CLI
Terraform
API

To delete a registry certificate:

  1. In the management console, select the folder to delete the registry certificate from.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. On the Overview page, go to the Certificates section.
  5. In the line with the certificate, click and select Delete from the drop-down list.
  6. In the window that opens, click Delete.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

  1. Delete a registry certificate:

    yc iot registry certificate delete --registry-name my-registry --fingerprint 0f...
    
  2. Make sure the certificate was deleted:

    yc iot registry certificate list --registry-name my-registry
    

    Result:

    +-------------+------------+
    | FINGERPRINT | CREATED AT |
    +-------------+------------+
    +-------------+------------+
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To delete the certificate of a registry created using Terraform:

  1. Open the Terraform configuration file and delete the certificate value in the certificates section, in the registry description fragment. To remove all certificates, delete the entire certificates section.

    Example registry description in the Terraform configuration:

    resource "yandex_iot_core_registry" "my_registry" {
      name        = "test-registry"
      description = "test registry for terraform provider documentation"
    ...
      certificates = [
        file("<path_to_first_certificate_file>"),
        file("<path_to_second_certificate_file>")
      ]
    ...
    }
    

    For more information about the yandex_iot_core_registry resource parameters in Terraform, see the relevant provider documentation.

  2. In the command line, change to the folder where you edited the configuration file.

  3. Make sure the configuration file is correct using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    The terminal will display a list of resources with parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can verify registry certificates using the management console or this CLI command:

    yc iot registry certificate list --registry-name <registry_name>
    

To delete a registry certificate, use the deleteCertificate REST API method for the Registry resource or the RegistryService/DeleteCertificate gRPC API call.

Was the article helpful?

Previous
Creating a certificate
Next
Managing device certificates
© 2025 Direct Cursus Technology L.L.C.