ACMに証明書の登録ができない

0

以下のサイトを参考に、AWS Client VPNを利用しようとしています。
http://xp-cloud.jp/blog/2018/12/20/4498/

以下のコマンドを打つと、エラーがでます。

aws acm importexport-certificate --certificate file://server.crt --region ap-northeast-1a

usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument command: Invalid choice, valid choices are:

これはどうしたら解決できるでしょうか?

質問済み 5年前166ビュー
2回答
0

こちらのドキュメントを参照してください。

https://docs.aws.amazon.com/cli/latest/reference/acm/import-certificate.html

サブコマンドの間違い (import --export-- -certificate) 修正と必要なオプション (--private-key) を追加する必要がありそうです。

semnil
回答済み 5年前
0

ありがとうございます。
コマンドを以下のように修正しましたが、やはり同じエラーが出ます。
なにが問題なのでしょうか?

aws acm import-certificate --certificate file://server.crt --private-key file://server.key --certificate-chain file://ca.crt --region ap-northeast-1a

回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ