ぺーぺーSEのブログ

備忘録・メモ用サイト。

TomcatへHTTPS(SSL)で接続する設定

server.xmlコネクタ要素にて設定する。
※Tomcat7.0.27で動確済み

<Connector port="8080"
           protocol="org.apache.coyote.http11.Http11Protocol"
           connectionTimeout="10000" 
           redirectPort="8443"
           scheme="https" 
           secure="true"
           keystoreFile="[キーストアファイルの位置]"
           keystorePass="[キーストアファイルのパスワード]"
           clientAuth="false"
           sslProtocol="TLS"
           URIEncoding="UTF-8"
           useBodyEncodingForURI="true" /> 

参考:
http://www.atmarkit.co.jp/fjava/rensai4/safetomcat_02/safetomcat_02_2.html
http://masayuko.tumblr.com/
http://www.itmedia.co.jp/enterprise/articles/0407/01/news018.html
http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Attributes