LoginSignup
4
4

More than 5 years have passed since last update.

サーバ証明書をaws-cliでインストール

Posted at

サーバ証明書をaws-cliでインストール

はじめに

ELBでSSLTerminationを行い、CloudFrontは独自ドメインSSLを使用する。
という場合があったので、忘れないようにここに書いておきます。

用意する証明書

名前 用途
hoge.com Webサイト(ELB)用
cdn.hoge.com CloudFront用

事前準備

awscliにて、plofile「demo」としてクレデンシャル登録済みの前提です。
以下のコマンドで作成。

aws configure --profile demo

ELB用

$ aws --profile demo iam upload-server-certificate --server-certificate-name hoge.com --certificate-body file://HOGE_CERT.crt --private-key file://hoge_web.pem --certificate-chain file://HOGE_INTER.crt

CloudFront用

$ aws --profile demo iam upload-server-certificate --path /cloudfront/ --server-certificate-name cdn.hoge.com --certificate-body file://HOGE_CERT.crt --private-key file://hoge_cloudfront.pem --certificate-chain file://HOGE_INTER.crt

参考リンク

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4