Skip to main content

既存の鍵ペア用の証明書を作成します。

証明書の生成のコマンドは、以下のように始まります。

smctl keypair generate-cert

or

smctl kp gen-cert

フラグ

証明書の生成のコマンドは、これらのフラグをサポートしています。

1. 既存の鍵ペア用の証明書生成するフラグ

ショートカット

フラグ

説明

--cert-alias string

証明書のエイリアス

形式:

--cert-alias="<value>"

--cert-profile-id string

証明書プロファイルID。

形式:

--cert-profile-id="<value>"

--custom-fields stringToString

CertCentral プロファイルの場合、カスタムフィールドを指定します。デフォルトは[]です。

形式:

--custom-fields="<value>"

--set-as-default-cert

鍵ペアIDのデフォルトの証明書として設定します。設定しない場合は、生成された証明書がデフォルトの証明書となります。

--account-id string

ユーザーのアカウントID。

形式:

--account-id="<value>"

--help

既存の鍵ペアでの証明書の生成に関するヘルプ。


Examples

説明: 提供されている鍵ペア用の証明書を作成します。

コマンド:

smctl keypair generate-cert <keypair id>

コマンドの例:

smctl keypair generate-cert 7747527b-6cc0-4ccf-8099-a6df1bf90bc14

Generate a test certificate

Generate a test certificate for an existing test keypair. This generates a 30-day certificate for an existing 30-day keypair.

Command:

smctl keypair generate-cert <keypair ID> --cert-alias <cert_alias> --cert-profile-id <profile ID> 

Command sample:

smctl keypair generate-cert <keypair ID> --cert-alias <cert_alias> --cert-profile-id <profile ID> 

Generate a key and certificate with shared alias

Generate a keypair and certificate with the same alias by referencing the shared alias and certificate profile. This command is used when certificate profiles are enabled on the account.

Command:

 smctl keypair generate rsa <shared alias> --generate-cert --cert-profile-id <certificate profile ID>  

Command sample:

 smctl keypair generate rsa RSA-1 --generate-cert --cert-profile-id 022df79f-e684-4788-be16-b490cbfbc46c  

Generate a key and certificate with different aliases

Generate a keypair and certificate with different aliases by referencing the an alias for the certificate, keypair, and providing the certificate profile. This command is used when certificate profiles are enabled on the account.

Command:

smctl keypair generate rsa <key alias> --generate-cert --cert-alias <cert alias> --cert-profile-id <cert_profile_ID>  

Command sample:

smctl keypair generate rsa RSA-KP-1 --generate-cert --cert-alias CERT-1 --cert-profile-id 022df79f-e684-4788-be16-b490cbfbc46c