Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

新しいサーバー証明書の作成 (CLI)

新しいサーバー証明書を作成するには、次のステップを使用します。

  1. 新しい CSR を作成するには、configuration settings certificates system コンテキストに移動し、create コマンドを入力します。

    または、既存の CSR または証明書に基づいて新しい CSR を作成するには、上のコンテキストに移動してから、コマンド clone CSR or certificate number を入力します。例:

    hostname:configuration settings certificates system> clone cert-000
  2. CSR のフォームに入力するには、次の CLI コマンドを使用します。
    hostname:configuration settings certificates system (uncommitted)> get
                     subject_commonname = hostname.us.example.com
               subject_organizationname = (unset)
         subject_organizationalunitname = (unset)
                   subject_localityname = (unset)
            subject_stateorprovincename = (unset)
                    subject_countryname = (unset)
                   subject_emailaddress = (unset)
                                    dns = hostname.us.example.com
                                     ip = 192.0.2.1
                                    uri = (unset)
                                comment = (unset)
    hostname:configuration settings certificates system (uncommitted)> set comment="test certificate"
                                comment = test certificate (uncommitted)
    hostname:configuration settings certificates system (uncommitted)> commit
  3. CSR を表示するには、次のコマンドを使用します。
    hostname:configuration settings certificates system> show
    Properties:
                    default = auto
    System Certificates:
    CERT     TYPE SUBJECT                   ISSUER                    EXPIRES   
    cert-000 req  hostname.us.example.com     
    cert-001 CA   Joe Test CA              Joe Test CA               2038-1-19
    cert-002 cert hostname.us.example.com  Joe Test CA               2038-1-21
    hostname:configuration settings certificates system> dump cert-000
    -----BEGIN CERTIFICATE REQUEST-----
    MIICwzCCAasCAQIwIjEgMB4GA1UEAxMXaG9zdG5hbWUudXMuZXhhbXBsZS5jb20w
       ...
    lhwblMXqR/3xptwym1vy5dYBJsQLKroA8nr/xFb3nhJB8nI+dxSN
    -----END CERTIFICATE REQUEST-----
  4. CSR をコピーし、所定の方法でそれを CA に転送します。
  5. 署名付き証明書を CA から受信したら、configuration settings certificates system コンテキストに移動し、import コマンドを入力します。
    hostname:configuration settings certificates system> import
    ("." to end)> -----BEGIN CERTIFICATE-----
    ("." to end)> MIID0DCCArigAwIBAgIBQDANBgkqhkiG9w0BAQUFADCBmDELMAkGA1UEBhMCVVMx
      …
    
    ("." to end)> 2ai9ZwREdTkcjcgQDxeHNZCpcHk=
    ("." to end)> -----END CERTIFICATE-----
    ("." to end)> .
  6. インポートされた証明書を確認するには、コマンド show を使用してすべての証明書エントリを表示します。
    hostname:configuration settings certificates system> show
    Properties:
                    default = auto
    System Certificates:
    CERT     TYPE SUBJECT                   ISSUER                    EXPIRES   
    cert-000 req  hostname.us.example.com     
    cert-001 CA   Joe Test CA              Joe Test CA               2038-1-19
    cert-002 cert hostname.us.example.com  Joe Test CA               2038-1-21