az 球狀 ca-certificate
管理資源群組和目錄中的憑證。
操作 | 描述 |
---|---|
az 球形 ca-certificate 清單 | 列出資源群組和目錄中的所有憑證。 |
az 球形 ca-certificate 下載 | 下載目錄的憑證。 |
az 球形 ca-certificate 下載鏈結 | 下載目錄的憑證鏈塊做為 PKCS#7 “.p7b” 檔案。 |
az 球形 ca-certificate 下載證明 | 下載目錄的憑證,以搭配提供的程式代碼使用。 |
命令
az 球形 ca-certificate 清單
列出資源群組和目錄中的所有憑證。
必要參數
參數 | 描述 |
---|---|
--catalog -c | 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name> 設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。 |
--resource-group -r | Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name> 設定預設群組。 來自: az 群組清單的值。 |
例子
列出資源群組和目錄中的所有憑證。
az sphere ca-certificate list --resource-group MyResourceGroup --catalog MyCatalog
az 球形 ca-certificate 下載
下載目錄的憑證。
必要參數
參數 | 描述 |
---|---|
--name -n | 要下載的憑證。 指定名稱。 如果未提供任何名稱,系統會下載使用中的憑證。 來自:az 球形 ca 的值 |
--output-file -of | 儲存憑證的路徑和檔名。 指定相對或絕對路徑。 |
--catalog -c | 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name> 設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。 |
--resource-group -r | Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name> 設定預設群組。 來自: az 群組清單的值。 |
例子
使用資源群組和目錄名稱下載使用中的憑證。
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
az 球形 ca-certificate 下載鏈結
下載目錄的憑證鏈塊做為 PKCS#7 “.p7b” 檔案。
必要參數
參數 | 描述 |
---|---|
--name -n | 要下載的憑證。 指定名稱。 如果未提供任何名稱,系統會下載使用中的憑證。 來自:az 球形 ca 的值 |
--output-file -of | 儲存憑證鏈路的路徑和檔名。 使用 .p7b 擴充功能指定相對或絕對路徑。 |
--catalog -c | 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name> 設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。 |
--resource-group -r | Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name> 設定預設群組。 來自: az 群組清單的值。 |
例子
使用資源群組和目錄名稱下載憑證鏈。
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
az 球形 ca-certificate 下載證明
下載目錄的憑證,以搭配提供的程式代碼使用。
必要參數
參數 | 描述 |
---|---|
--name -n | 要下載的憑證。 指定名稱。 如果未提供任何名稱,系統會下載使用中的憑證。 來自:az 球形 ca 的值 |
--verification-code -v | 產生憑證時所使用的 Azure 球體安全性服務驗證碼。 |
--output-file -of | 儲存憑證的路徑和檔名。 指定相對或絕對路徑。 |
--catalog -c | 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name> 設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。 |
--resource-group -r | Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name> 設定預設群組。 來自: az 群組清單的值。 |
例子
使用資源群組和目錄名稱下載憑證。
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