az sphere ca-certificate
備註
此參考是 Azure CLI azure-sphere 延伸模組的一部分(2.45.0 版或更高版本)。 擴充功能會在您第一次執行 az sphere ca-certificate 命令時自動安裝。 深入瞭解擴充功能。
管理資源群組和目錄中的憑證。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az sphere ca-certificate download |
下載目錄的憑證。 |
擴充套件 | GA |
az sphere ca-certificate download-chain |
將目錄的憑證鏈結下載為 PKCS#7 “.p7b” 檔案。 |
擴充套件 | GA |
az sphere ca-certificate download-proof |
下載目錄的擁有權證明憑證,以搭配提供的程式代碼使用。 |
擴充套件 | GA |
az sphere ca-certificate list |
列出資源群組和目錄中的所有憑證。 |
擴充套件 | GA |
az sphere ca-certificate download
下載目錄的憑證。
az sphere ca-certificate download --catalog
--output-file
--resource-group
[--name]
範例
使用資源群組和目錄名稱下載使用中憑證。
az sphere ca-certificate download --resource-group MyResourceGroup --catalog MyCatalog --output-file myCert.cer
使用資源群組、目錄名稱和憑證名稱下載憑證。
az sphere ca-certificate download --resource-group MyResourceGroup --catalog MyCatalog --name 2E7A0AF370ABC439901BBB37AF38B97 --output-file myCert.cer
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>
來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。
用來儲存憑證的路徑和檔名。 指定相對或絕對路徑。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
選擇性參數
要下載的憑證。 指定名稱。 如果未提供任何名稱,則會下載使用中的憑證。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
az sphere ca-certificate download-chain
將目錄的憑證鏈結下載為 PKCS#7 “.p7b” 檔案。
az sphere ca-certificate download-chain --catalog
--output-file
--resource-group
[--name]
範例
使用資源群組和目錄名稱下載憑證鏈結。
az sphere ca-certificate download-chain --resource-group MyResourceGroup --catalog MyCatalog --name 2E7A0AF370ABC439901BBB37AF38B97 --output-file myCertChain.p7b
使用資源群組、目錄名稱和憑證名稱下載使用中的憑證鏈結。
az sphere ca-certificate download-chain --resource-group MyResourceGroup --catalog MyCatalog --output-file myCertChain.p7b
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>
來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。
用來儲存憑證鏈結的路徑和檔名。 使用 「.p7b」 延伸模組指定相對或絕對路徑。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
選擇性參數
要下載的憑證。 指定名稱。 如果未提供任何名稱,則會下載使用中的憑證。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
az sphere ca-certificate download-proof
下載目錄的擁有權證明憑證,以搭配提供的程式代碼使用。
az sphere ca-certificate download-proof --catalog
--output-file
--resource-group
--verification-code
[--name]
範例
使用資源群組和目錄名稱下載擁有權證明憑證。
az sphere ca-certificate download-proof --resource-group MyResourceGroup --catalog MyCatalog --name 2E7A0AF370ABC439901BBB37AF38B97 --verification-code 3304517c557a3375e --output-file myCert.cer
使用資源群組、目錄名稱和憑證名稱下載使用中擁有權證明憑證。
az sphere ca-certificate download-proof --resource-group MyResourceGroup --catalog MyCatalog --verification-code 3304517c557a3375e --output-file myCert.cer
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>
來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。
用來儲存憑證的路徑和檔名。 指定相對或絕對路徑。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
產生憑證時要使用的 Azure Sphere 安全性服務的驗證碼。
選擇性參數
要下載的憑證。 指定名稱。 如果未提供任何名稱,則會下載使用中的憑證。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
az sphere ca-certificate list
列出資源群組和目錄中的所有憑證。
az sphere ca-certificate list --catalog
--resource-group
範例
列出資源群組和目錄中的所有憑證。
az sphere ca-certificate list --resource-group MyResourceGroup --catalog MyCatalog
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>
來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。