az sphere device certificate
Note
This reference is part of the azure-sphere extension for the Azure CLI (version 2.45.0 or higher). The extension will automatically install the first time you run an az sphere device certificate command. Learn more about extensions.
Manage certificates on the attached device.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sphere device certificate add |
Add a certificate in the attached device's certificate store. |
Extension | GA |
az sphere device certificate delete |
Delete a certificate in the attached device's certificate store. |
Extension | GA |
az sphere device certificate list |
List certificates in the attached device's certificate store. |
Extension | GA |
az sphere device certificate show |
Show details of a certificate in the attached device's certificate store. |
Extension | GA |
az sphere device certificate show-quota |
Show the available free space in the attached device's certificate store. |
Extension | GA |
az sphere device certificate add
Add a certificate in the attached device's certificate store.
az sphere device certificate add --cert-type {client, rootca}
--certificate
--public-key-file
[--device]
[--private-key-file]
[--private-key-password]
Examples
Add a rootca certificate on the attached device.
az sphere device certificate add --certificate certSample --cert-type rootca --public-key-file pubcert.pem
Add a client certificate on the attached device.
az sphere device certificate add --certificate certSample --cert-type client --public-key-file pubcert.pem --private-key-file privkeycert.pem --private-key-password 1234
Required Parameters
The type of certificate to add. "rootca" - a root CA certificate for use with EAP-TLS networks where the device authenticates the server. "client" - a client certificate, containing both the public and private key, for use with EAP-TLS networks. Please see: https://aka.ms/AzureSphereCertificateStore for more details.
The name of the certificate to add.
The path to a public key certificate .pem file. You can provide a relative or absolute path.
Optional Parameters
The device to run the command on when multiple devices are attached. Specify the ID, IP address, or Local Connection ID of an attached device.
The path to a client private key .pem file. Required when adding a certificate of type "client". You can provide a relative or absolute path.
Password for the client private key. Required when adding a client private key that is encrypted.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sphere device certificate delete
Delete a certificate in the attached device's certificate store.
az sphere device certificate delete --certificate
[--device]
Examples
Delete a certificate on the attached device.
az sphere device certificate delete --certificate certSample
Required Parameters
The name of the certificate to delete.
Optional Parameters
The device to run the command on when multiple devices are attached. Specify the ID, IP address, or Local Connection ID of an attached device.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sphere device certificate list
List certificates in the attached device's certificate store.
az sphere device certificate list [--device]
Examples
List certificates on the attached device.
az sphere device certificate list
Optional Parameters
The device to run the command on when multiple devices are attached. Specify the ID, IP address, or Local Connection ID of an attached device.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sphere device certificate show
Show details of a certificate in the attached device's certificate store.
az sphere device certificate show --certificate
[--device]
Examples
Show details of a certificate on the attached device.
az sphere device certificate show --certificate certSample
Required Parameters
The certificate name of the certificate for which to show the details.
Optional Parameters
The device to run the command on when multiple devices are attached. Specify the ID, IP address, or Local Connection ID of an attached device.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sphere device certificate show-quota
Show the available free space in the attached device's certificate store.
az sphere device certificate show-quota [--device]
Examples
Show the available free space in the attached device's certificate store.
az sphere device certificate show-quota
Optional Parameters
The device to run the command on when multiple devices are attached. Specify the ID, IP address, or Local Connection ID of an attached device.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.