Skip to content

Instantly share code, notes, and snippets.

@myaumyau
Last active October 13, 2015 01:08
Show Gist options
  • Save myaumyau/4115295 to your computer and use it in GitHub Desktop.
Save myaumyau/4115295 to your computer and use it in GitHub Desktop.
[md]IISで複数SSLサイト(ホストヘッダー必須)

SSLポートのバインド確認

cscript.exe adsutil.vbs GET /w3svc/<サイト識別子>/SecureBindings

SSLポートのバインド設定

cscript.exe adsutil.vbs SET /w3svc/<サイト識別子>/SecureBindings ":<ポート番号>:<ホストヘッダー>"

SSLポートのバインド削除

cscript.exe adsutil.vbs DELETE /w3svc/<サイト識別子>/SecureBindings

コマンドでSSLのバインドを構成する [IIS6.0] | SSL・サーバ証明書の発行と認証 CSPSSL http://cspssl.jp/support/install_iis6_bind.html

イベントログに

ソース:W3SVC
イベントID:1113
サイト 1 用 IP/ポートの組み合わせのうち 1 つが別のサイトで使用されるように構成されています。別のサイトの SSL 構成が使われます。

が出る場合、下記を試したい(未検証)

http://microsoftfaqs.com/msg/15243059.aspx

This is how I add multiple entries to the configuration:

  1. Add first header to configuration: cscript.exe adsutil.vbs set /w3svc/855783534/SecureBindings ":443:site1.dnsname.com"
  2. You can check it's added ciorrectly, replacing the current configuration
  3. Use the following tool to INSERT rather than replace the current header: http://blogs.msdn.com/david.wang/archive/2004/12/02/273681.aspx I choose to call this too "iistool.vbs". Then run the following command: cscript iistool.vbs /w3svc/855783534/SecureBindings ":443:site1.dnsname.com" ":443:site2.dnsname.com" /INSERT /COMMIT

When you then run adsutil get, you should see that the configuration have multiple headers: SecureBindings : (LIST) (2 Items) ":443:site1.dnsname.com" ":443:site2.dnsname.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment