ANA国内線【PR】
Peace on Earth
カテゴリ:Resin
Resin SSL
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 O="peace on earth", L=shinagawa, ST=Tokyo, C=JP> correct?
[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 | 2007-02-01 14:25 | Resin



Linux Windows javaなんかのメモ 忘れやすいもんで... あとGoogle, ネットでのニュースとかいろいろ

by nikoniko_felice
カテゴリ
タグ
最新のコメント
ithaca breas..
by PoodefedHox at 10:28
omega medica..
by AppomsdoP at 16:04
to: Admin - ..
by dautsBasy at 09:47
栗弄りながら、おっぱい ..
by 花鳥風月 at 15:11
c01ptkdu ..
by uyw84x5r : ブル大西 at 23:15
最新のトラックバック
Vicodin.
from Vicodin.
Cialis.
from Cialis.
デッケーーーおぱいw
from むろい
Acomplia.
from Acomplia.
Incest.
from Incest.
Ambien.
from Ambien.
Xanax.
from Xanax.
Viagra.
from Viagra.
Incest.
from Incest.
Ultram.
from Ultram.
以前の記事
お気に入りブログ
メモ帳
検索
おすすめキーワード(PR)
ファン
XML | ATOM

skin by excite