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:

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

gefragt vor 5 Jahren174 Aufrufe
2 Antworten
0

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

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

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

semnil
beantwortet vor 5 Jahren
0

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

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

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen