1
0

More than 1 year has passed since last update.

Azure Container Registryで作成したStreamlitアプリをSSL対応すーる(ドメインはRoute 53)

Last updated at Posted at 2022-12-09

はじめに

Azure Container RegistryでStreamlitアプリを作りました。SSL対応します。

1.こちらを参考にしてください

2.AWS Route53でドメインを作成しています

3.SSLなうを用いてLet’s Encryptの証明書を申請します

4.Let's Encryptへ登録
image.png

5.チャレンジトークンの取得

image.png

6.ドメイン名の所有確認
image.png

7.Route53に設定し、確認ボタンをクリック
image.png

8.RSAの鍵を生成し、privkey.pemとして保存します

image.png

9.証明書発行申請をクリック、cert.pem、chain.pem、fullchain.pemとして保存します

image.png

10.コマンドプロンプトからpemをpfxへ変換します

openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out gachimoto.pfx

pfxのパスワードを入力

11.Azure Portalのキーコンテナーで作成したpfxファイルをアップロードします

image.png

12.App Serviceの証明書の設定でキーコンテナーから証明書をインポートします

image.png

13.SSLバインディングします

image.png

14.サイトにアクセスして問題なければ完了です

お疲れ様でした

1
0
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
1
0