question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add user defined identifying label to trusted-ca's

See original GitHub issue

The Hono tenant management API allows adding multiple trusted CAs which are then used as trust anchors to authenticate devices. When adding a trust anchor one has to provide some information (amongst others):

  • subject-dn
  • not-before
  • not-after

A tenant can however have multiple trusted CAs with the same subject-dn and different expiration dates. Consider a tenant having the following CAs:

[
  {
    "subject-dn":"CN=Doors,O=ACME Inc.",
    "not-before": "2018-01-01T00:00:00+01:00",
    "not-after": "2021-01-01T00:00:00+01:00"
  },
  {
    "subject-dn":"CN=Doors,O=ACME Inc.",
    "not-before": "2021-01-01T00:00:00+01:00",
    "not-after": "2025-01-01T00:00:00+01:00"
  }
]

Now consider the scenario where these trusted CAs are listed in a UI. As they both have the same subject-dn it’s very difficult to distinguish them. They could be listed as:

  • CN=Doors,O=ACME Inc. (Validity: “2018-01-01T00:00:00+01:00”-“2021-01-01T00:00:00+01:00”)
  • CN=Doors,O=ACME Inc. (Validity: “2021-01-01T00:00:00+01:00”-“2025-01-01T00:00:00+01:00”)

This however is very hard to read.

A proposal therefore would be to introduce a tenant unique identifier for each certificate which the user can define herself. Then this identifier or label could be listed in the UI and all the details in a sub-view (e.g. when clicking on it):

  • doors-cert-valid-until-2021
  • doors-cert-valid-until-2025

When adding a trusted CA the user would then also add the (mandatory) additional text field which has to be unique to the other CAs of this tenant (proposal: cert-id):

  {
    "cert-id": "doors-cert-valid-until-2025",
    "subject-dn":"CN=Doors,O=ACME Inc.",
    "not-before": "2021-01-01T00:00:00+01:00",
    "not-after": "2025-01-01T00:00:00+01:00"
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kaniyancommented, Feb 17, 2021

This has been closed via PR #2470.

1reaction
kaniyancommented, Feb 10, 2021

As we discussed, the addition of a new optional identifier doesn’t introduce any breaking change in the Device Management API. So it can be included in a minor release. But the device registry implementations, might need to have a strategy to generate these ids for the existing data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Controlling access to tokens - IBM
The standard defines two types of users, the standard user (User) and the security officer (SO), each having its own personal identification number...
Read more >
How to troubleshoot, import/renew and monitor java Keystore ...
Part 2 briefs about different keystores and determining the keystore in to which a ... TrustedCAs (contains trusted server certificates).
Read more >
Cisco Identity Services Engine Administrator Guide, Release 3.1
When you add or import certificates that are designated for portal use, define a certificate group tag and associate it with the ...
Read more >
Changes to Trusted Certificate Authorities in Android Nougat
Customizing the CAs your app trusts on Android Nougat is easy using the Network Security Config. Trust can be specified across the whole...
Read more >
Upload and Retrieve the Root Certificate | Couchbase Docs
Users of Couchbase Server Version 7.1+ should use instead the APIs described in Certificate Management API. POST /controller/uploadClusterCA POST /settings/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found