Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex IoT Core
  • Service closure
    • 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 service resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

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

Managing broker certificates

Written by
Yandex Cloud
Updated at June 18, 2026
  • Getting a list of broker certificates
  • Adding a certificate
  • Deleting a certificate

Warning

Yandex IoT Core is no longer available to new users.

Current users can create resources until November 1, 2026. Afterwards, the service will go read-only and cease to operate on December 1, 2026. For more information on the timing and procedure, see Service shutdown.

Note

The broker is at the Preview stage.

To start exchanging messages between broker clients, you must log in. This section describes how to manage broker certificates for the relevant authorization method.

Note

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

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

To access a broker, use its unique ID or name. For info on how to get the unique broker ID or name, see Getting information about a broker.

Getting a list of broker certificatesGetting a list of broker certificates

Management console
CLI
API
  1. In the management console, select the folder where the broker is located.
  2. Go to IoT Core.
  3. In the left-hand panel, select Brokers.
  4. Select the broker. A list of certificates will be displayed in the Certificates section.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

Get a list of broker certificates:

yc iot broker certificate list --broker-name my-broker

Result:

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

To get a list of broker certificates, use the listCertificates REST API method for the Broker resource or the BrokerService/ListCertificates gRPC API call.

Adding a certificateAdding a certificate

Management console
CLI
Terraform
API
  1. In the management console, select the folder to add the broker certificate to.

  2. Navigate to IoT Core.

  3. In the left-hand panel, select Brokers.

  4. Select the appropriate broker from the list.

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

    • To add a file:

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

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

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

Add a certificate to the broker:

yc iot broker certificate add \
  --broker-name my-broker \
  --certificate-file broker-cert.pem

Where:

  • --broker-name: Broker name.
  • --certificate-file: Path to the public part of the certificate.

Result:

broker_id: b91ki3851h**********
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 relevant documentation on the Terraform website or its mirror.

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

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

To add a certificate to a broker created using Terraform:

  1. In the configuration file, specify the properties of the resources you want to create:

    • yandex_iot_core_broker: Broker parameters:
      • name: Broker name.
      • description: Broker description.
      • certificates: List of broker certificates for authentication with certificates.

    Example broker description in the Terraform configuration:

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

    For more information about yandex_iot_core_broker properties, see this Terraform provider guide.

  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 valid, you will get this message:

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

    terraform plan
    

    You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.

  5. Apply the configuration changes:

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

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

    yc iot broker certificate list --broker-name <broker_name>
    

To add a certificate to a broker, use the addCertificate REST API method for the Broker resource or the BrokerService/AddCertificate gRPC API call.

Deleting a certificateDeleting a certificate

Management console
CLI
Terraform
API
  1. In the management console, select the folder to delete the broker certificate from.
  2. Navigate to IoT Core.
  3. In the left-hand panel, select Brokers.
  4. Select the appropriate broker from the list.
  5. On the Overview page, go to the Certificates section.
  6. In the line with the certificate, click and select Delete from the drop-down list.
  7. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. Delete a broker certificate:

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

    yc iot broker certificate list --broker-name my-broker
    

    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 relevant documentation on the Terraform website or its mirror.

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

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

To delete a broker certificate created using Terraform:

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

    Example broker description in the Terraform configuration:

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

    For more information about yandex_iot_core_broker properties, see this Terraform provider guide.

  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 valid, you will get this message:

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

    terraform plan
    

    You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.

  5. Apply the configuration changes:

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

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

    yc iot broker certificate list --broker-name <broker_name>
    

To delete a broker certificate, use the deleteCertificate REST API method for the Broker resource or the BrokerService/DeleteCertificate gRPC API call.

Was the article helpful?

Previous
Managing device certificates
Next
Managing registry passwords
© 2026 Direct Cursus Technology L.L.C.