Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex IoT Core
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Viewing the connection log
    • Creating a trigger for a topic
    • Managing registries
      • Getting information about registries
      • Creating a registry
      • Updating a registry
      • Deleting a registry
    • Managing devices
      • Managing topic aliases
        • Creating an alias
        • Getting a list of aliases
        • Updating an alias
        • Deleting an alias
      • Getting information about devices
      • Creating a device
      • Updating a device
      • Deleting a device
    • Managing certificates
      • Create a certificate
      • Managing registry certificates
      • Managing device certificates
    • Managing passwords
      • Managing registry passwords
      • Managing device passwords
  • Concepts
    • Authorization
    • Relationship between service resources
    • MQTT broker connection parameters
    • Sending messages to an MQTT broker via gRPC
    • Topic
    • Backups
    • Quotas and limits
  • Use cases
    • All use cases
    • Working with Mosquitto
      • Sending messages
      • Subscribing a device or registry to receive messages
    • Working with Yandex IoT Core from an Android device in Java
    • Working with Yandex IoT Core in C#
    • Working with Yandex IoT Core in Java
    • Writing data from a device to Managed Service for PostgreSQL
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DeviceDataService
      • DeviceService
      • RegistryDataService
      • RegistryService
      • OperationService
    • REST
      • Overview
      • Device
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • list
        • listCertificates
        • listOperations
        • listPasswords
        • update
      • DeviceData
        • Overview
        • publish
      • Registry
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • list
        • listCertificates
        • listDeviceTopicAliases
        • listOperations
        • listPasswords
        • update
      • RegistryData
        • Overview
        • publish
  • Questions and answers
  1. Step-by-step instructions
  2. Managing certificates
  3. Managing registry certificates

Managing registry certificates

  • 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 the Yandex IoT Core.
  3. Select the registry.
  4. On the Overview page, go to the Certificates section.

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.

Get a list of registry certificates:

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

Result:

+------------------------------------------+---------------------+
|               FINGERPRINT                |     CREATED AT      |
+------------------------------------------+---------------------+
| 0f511ea32139178edf73afb953a9cc398f33adf1 | 2019-05-29 16:46:23 |
| 589ce1605019eeff7bb0992f290be0cd708ecc6c | 2019-05-29 16:40:48 |
+------------------------------------------+---------------------+

You can get a list of registry certificates using the listCertificates API method.

Adding a certificate

Management console
CLI

To add a certificate to a registry:

  1. In the management console, select the folder where you want to add a registry certificate.

  2. Select Yandex IoT Core.

  3. Select the desired 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 Select 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 Contents field.
      3. Click Add.

If you don't have the Yandex.Cloud 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.

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

Deleting a certificate

Management console
CLI

To delete a registry certificate:

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

If you don't have the Yandex.Cloud 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
    +-------------+------------+
    | FINGERPRINT | CREATED AT |
    +-------------+------------+
    +-------------+------------+
    
In this article:
  • Getting a list of registry certificates
  • Adding a certificate
  • Deleting a certificate
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC