ResinにSSLを設定しました。
OpenSSLとSunのJavaのと二通りあるみたいで、後者でやってみました。 1.クラスパスにJDKをセット。 2.RESIN_HOMEでmkdir keys 3.keytool -genkey -keyalg RSA -keystore keys/server.keystore を実行 4.こんな具合に進めていく。パスワードだけそろえて、後はテストなら適当に。 Enter keystore password: changeit What is your first and last name? [Unknown]: nikoniko What is the name of your organizational unit? [Unknown]: felice What is the name of your organization? [Unknown]: peace on earth What is the name of your City or Locality? [Unknown]: shinagawa What is the name of your State or Province? [Unknown]: Tokyo What is the two-letter country code for this unit? [Unknown]: JP Is [no]: yes Enter key password for (RETURN if same as keystore password): changeit 5.resin.confを編集 serverかserver-defaultタグの中にこんな具合に追加。 <http port="8443"> <jsse-ssl> <key-store-type>jks <key-store-file>keys/server.keystore <password>changeit </jsse-ssl> </http> 6.こんな内容を書いたjspを作ってhttpsで呼び出してみる。 Secure? <%= request.isSecure() %> 問題ないならtrueがかえってくるようです。 参考ページ そのまんまだな。 *RESIN_HOMEからbin/httpd.sh って指定して起動、停止しないと、エラーが出ることに気づいた。うーむ。。。 < 前のページ次のページ >
|
![]() by nikoniko_felice カテゴリ
全体
Linux Windows java Firefox 正規表現 SQL Internet 脆弱性関連 MySQL Active Directory Skype Google Maps Apache + Tomcat EXCEL HSQL(HypersonicSQL) Mail/Sendmail SSL FTP 翻訳 SQL Server EasyCharts 携帯 CD HTML Network Resin Adobe YAHOO! Apache Apple HTTP PHP プログラミング News Tool java script Music Mozilla 用語 未分類
タグ
最新のコメント
最新のトラックバック
以前の記事
2008年 03月
2008年 02月 2008年 01月 2007年 12月 2007年 11月 2007年 10月 2007年 09月 2007年 08月 2007年 07月 2007年 06月 2007年 05月 2007年 04月 2007年 03月 2007年 02月 2007年 01月 2006年 12月 2006年 11月 2006年 10月 2006年 09月 2006年 08月 2006年 07月 2006年 06月 2006年 05月
お気に入りブログ
メモ帳
検索
おすすめキーワード(PR)
ファン
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||