LoginSignup
5
3

More than 5 years have passed since last update.

ロードバランサー配下はHTTP通信する、HTTPSのテスト

Last updated at Posted at 2018-09-14

このような、ロードバランサー配下環境は、HTTPで通信するHTTPS通信のテスト環境をローカルに用意したいが、テスト用のLoad Balancerが購入できません。代わりにWindowsのIISとARRとURL Rewriteツールでそれっぽい環境を作った話です。

[作りたい環境]
image.png

[それっぽい環境]
image.png

  1. 役割と追加で、Webサーバ(IIS)をインストール

  2. ARR3.0をインストール
    https://www.microsoft.com/en-us/download/details.aspx?id=47333

  3. ARRでEnable Proxy

    1. 「Application Request Routing Cache」をクリック image.png

    2.「Server Proxy Settings」をクリック
    image.png

    3.「Enable Proxy」にチェックを入れ、適用する

  4. 「IIS URL Rewrite Module」をインストール
    https://www.microsoft.com/ja-jp/download/details.aspx?id=7435&751be11f-ede8-5a0c-058c-2ee190a24fa6=True

  5. 新しいServer Farmsを作成
    1.Server Farmsを右クリックし「Create Server Farms」を選択

    2.新しいServer Famrsの名前を入力
    image.png

    3.転送したいサーバ(HTTPでリクエストを送りたいサーバ)を指定
    image.png

    4.作成したserverfarmを選択し、「Routing Rules」選択
    image.png

    5.「Enable SSL offloading」にチェックが入っていることを確認
    image.png

  6. 自己証明書を作成
    こちらのサイトを参考に、自己証明書をサーバに登録し、テストするクライアントにインポート
    http://orochi8.blog.shinobi.jp/asp.net/iis7%E3%81%A7%E3%81%AE%E8%A8%BC%E6%98%8E%E6%9B%B8%E4%BD%9C%E6%88%90

  7. Default Web Siteのバインドに、HTTPSを追加。証明書は、6で作成した証明書を使う

5
3
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
5
3