-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable iotedged identity certificates endpoint (#497)
The changes here enable modules to request their identity (client) certificates. With this capability, modules built as microservices and their clients can authenticate themselves in a generic manner using standard secure communication protocols built over TLS! Here are the salient properties of the certificate. These certificates are rooted using the Edge device CA. Note: The CA certificate is obtained via the trust bundle API. Each of these certificates will have their identifier stamped in the certificate as SAN URI entry which can be used for identification. The following is the URI format: azureiot://{hub}/devices/{did}/module/{mid} The CN field of the subject will contain the module id and is not configurable. The certificates are short lived for a duration of two hours.
- Loading branch information
Showing
22 changed files
with
3,620 additions
and
2,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
use certificate_properties::CertificateType; | ||
|
||
/// Trait to obtain configuration data needed by any implementation of the workload interface | ||
/// for module identity and certificate management. | ||
pub trait WorkloadConfig { | ||
fn iot_hub_name(&self) -> &str; | ||
fn device_id(&self) -> &str; | ||
fn get_cert_max_duration(&self, cert_type: CertificateType) -> i64; | ||
} |
Oops, something went wrong.