Oracle® ZFS Storage Appliance 管理指南,发行版 2013.1.5.0

退出打印视图

更新时间: 2016 年 2 月
 
 

如何销毁 CSR 或证书 (CLI)

要销毁 CSR 或证书,请使用以下步骤。


注 -  销毁 CSR 还会销毁关联的私钥。因此,将无法导入从该 CSR 派生的证书。销毁证书还会销毁关联的私钥。因此,将无法重新导入该证书。 
  1. 通过输入上下文 configuration services identity certificates 并输入命令 show 来查看所有证书条目。
    hostname:configuration services identity certificates> show
    Properties:
                    default = auto
    Certificates:
    CERT     TYPE FOR                       ISSUER                    EXPIRES   
    cert-000 req  hostname.us.example.com  Joe Test CA               2015-12-4
    cert-001 CA   Joe Test CA              Joe Test CA               2015-1-2
    cert-002 cert hostname.us.example.com  Joe Test CA               2015-12-3
  2. 要销毁 CSR 或证书,请使用以下 CLI 命令。
    hostname:configuration services identity certificates> destroy cert-002
    Caution: Destroying a certificate issued by a certificate authority 
    also destroys the associated private key.Re-importing the certificate will not be possible.
    Destroy appliance certificate? (Y/N) Y