[index] CentreCOM Secure HUB GS970EMXシリーズ コマンドリファレンス 5.5.4
NoteローカルCAでは、発行済み証明書の失効機能はサポートしていません。
Note証明書を使用する側の機能では、どの証明書を使用するかをトラストポイント名で指定します(機能によっては使用するトラストポイント名があらかじめ決まっており指定できないものもあります)。他システムにおいて「証明書ストア」、「証明書レポジトリー」、「認証情報ストレージ」、「キーストア・トラストストア」などと呼ばれているものと類似する概念です。
Note「local」「default-selfsigned」以外の名前を持つローカルCAは、AMFネットワーク上でAT-Vista Manager EX(AVM EX)をTLSクライアント証明書で認証する場合にのみ使用できます(この用途には「local」「default-selfsigned」以外を使う必要があります)。それ以外の機能でローカルCAを使う場合は、次節で述べる手順 にしたがい、「local」という名前でローカルCAを別途作成してください。
awplus(config)# crypto pki trustpoint myca ↓ Created trustpoint "myca". awplus(ca-trustpoint)#
awplus(ca-trustpoint)# enrollment selfsigned ↓
awplus(ca-trustpoint)# lifetime years 1 ↓
awplus(ca-trustpoint)# end ↓ awplus# crypto pki authenticate myca ↓ Generating 2048-bit key for local CA... Successfully authenticated trustpoint "myca".
awplus(config)# crypto pki trustpoint local ↓ Created trustpoint "local". Generating 2048-bit key for local CA... Automatically authenticated trustpoint "local". awplus(ca-trustpoint)#ローカルCAの名前として「local」を指定した場合は、crypto pki trustpointコマンドを実行するだけで、ローカルCAの公開鍵ペア生成と自己署名ルートCA証明書の発行が行われ、ローカルCAの作成が完了します。
awplus(ca-trustpoint)# lifetime years 1 ↓
Noteトラストポイント名が「local」の場合、crypto pki trustpointコマンドの実行時にルートCA証明書の発行が自動的に行われるため、ルートCA証明書の有効期間をデフォルトの5年から変更することはできませんが、ローカルCA「local」として発行する他の証明書にはlifetimeコマンドで設定した有効期間が適用されます。
awplus# show crypto pki trustpoint ↓ -------------------- Trustpoint "myca" Type : Self-signed certificate authority Root Certificate: B5AA9359 5A9B2833 785BAA15 C6DC803C 81446F6F Local Server : The server is not enrolled to this trustpoint. Authentication and Enrollment Parameters Enrollment : selfsigned
awplus# show crypto pki certificates ↓ -------------------- Trustpoint "myca" Certificate Chain -------------------- Self-signed root certificate Subject : /O=Allied Telesis, Inc./CN=AlliedWarePlusCAXXXXXXXXXXXXXXXX Issuer : /O=Allied Telesis, Inc./CN=AlliedWarePlusCAXXXXXXXXXXXXXXXX Algorithms : Public Key : rsaEncryption, 2048 bits : Signature : sha256WithRSAEncryption Valid From : Nov 9 08:40:35 2017 GMT Valid To : Nov 7 08:40:35 2027 GMT Fingerprint : B5AA9359 5A9B2833 785BAA15 C6DC803C 81446F6F
awplus# crypto pki enroll local ↓ Generating 2048-bit key "server-default"... Successfully enrolled the local server.同コマンドの初回実行時には、「server-default」という名前で識別される本製品の公開鍵ペア(秘密鍵と公開鍵)が自動的に生成され、その公開鍵証明書をローカルCAの秘密鍵で署名して、サーバー証明書の発行が完了します。
awplus# show crypto pki certificates ↓ -------------------- Trustpoint "local" Certificate Chain -------------------- Server certificate Subject : /O=AlliedWare Plus/CN=awplus Issuer : /O=Allied Telesis, Inc./CN=AlliedWarePlusCAXXXXXXXXXXXXXXXX Algorithms : Public Key : rsaEncryption, 2048 bits : Signature : sha256WithRSAEncryption Valid From : Nov 9 09:04:48 2017 GMT Valid To : Nov 8 09:04:48 2022 GMT Fingerprint : 61DEDC23 AFD1BCAA 1AC8575F EC3CC342 E99930DE Self-signed root certificate Subject : /O=Allied Telesis, Inc./CN=AlliedWarePlusCAXXXXXXXXXXXXXXXX Issuer : /O=Allied Telesis, Inc./CN=AlliedWarePlusCAXXXXXXXXXXXXXXXX Algorithms : Public Key : rsaEncryption, 2048 bits : Signature : sha256WithRSAEncryption Valid From : Nov 9 08:53:04 2017 GMT Valid To : Nov 7 08:53:04 2027 GMT Fingerprint : 79DF0F8B DA5B190F A38AFDE9 9EEE5BD9 48FC8E6E
awplus(config)# crypto pki trustpoint myca ↓
awplus(ca-trustpoint)# rsakeypair myserverkey ↓
Noteサーバー公開鍵ペアはデフォルトで2048ビット長になります。これを変更したい場合は、次のようにrsakeypairコマンドのオプションパラメーターで鍵の長さをビットで指定してください。有効範囲は1024~16384ビットです。
awplus(ca-trustpoint)# rsakeypair longserverkey 4096 ↓
awplus# crypto pki enroll myca ↓ Generating 2048-bit key "myserverkey"... Successfully enrolled the local server.これにより、デフォルトの「server-default」の代わりに、「myserverkey」という名前で識別される公開鍵ペアが生成され、この公開鍵を対象に本製品のサーバー証明書が発行されます。
awplus# crypto pki export local pem flash:/localca.cer ↓
awplus# show crypto pki certificates local ↓ ... Server certificate ... Fingerprint : 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 ... awplus# no crypto pki certificate local 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 ↓ ... Deleted the certificate.
awplus# configure terminal ↓ awplus(config)# crypto pki trustpoint local ↓
awplus(ca-trustpoint)# lifetime years 1 ↓
awplus(ca-trustpoint)# end ↓ awplus# crypto pki enroll local ↓ Using private key "server-default"... Successfully enrolled the local server.
awplus# show crypto pki certificates local ↓ ... Server certificate ... Fingerprint : 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 ...
awplus# no crypto pki certificate local 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 ↓ ... Deleted the certificate.
awplus# crypto pki enroll local ↓ Using private key "server-default"... Successfully enrolled the local server.
Noteサーバー証明書のみ更新した場合、クライアントへの再配布は不要です。
awplus# show crypto pki certificates local ↓ ... Server certificate ... Fingerprint : 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 Self-signed root certificate ... Fingerprint : 0AEF70A9 43B9DCC5 4CCA7771 2341872D 9321A2CF
awplus# no crypto pki certificate local 70483113 CC6EF618 4B18C838 2CDD8AA4 05BBD1A5 ↓ ... Deleted the certificate. awplus# no crypto pki certificate local 0AEF70A9 43B9DCC5 4CCA7771 2341872D 9321A2CF ↓ ... Deleted the certificate. Deleted the trustpoint key.
awplus# crypto pki authenticate local ↓ Generating 2048-bit key for local CA... Successfully authenticated trustpoint "local".
awplus# crypto pki enroll local ↓ Using private key "server-default"... Successfully enrolled the local server.
awplus# crypto pki export local pem flash:/cacert.pem ↓
(C) 2021 - 2025 アライドテレシスホールディングス株式会社
PN: 613-003033 Rev.P