自己紹介

自分の写真
最近、iphoneアプリをリリースしました。
UxU
無料アプリですので、是非遊んで下さい。 第二弾アプリ:工場夜景写真集 今後も色々なアプリをリリースしていく予定です。
次は、コスプレ or 漫画 or 騎乗日記

2009年12月19日土曜日

Google app engine上でSSL

SSL通信をGoogle app engine上で行うとすると、*.appspot.com上でないと「Forbidden」エラーが出ます。

早く、Gppgle Appsドメインでも可能としてもらいたい

設定は、web.xml
<security-constraint>
<web-resource-collection>
<!-- /ssl/フォルダ(パス)以下をHTTPS通信を行う -->
<url-pattern>/ssl/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

あと、appengine-web.xml
<ssl-enabled>true</ssl-enabled>

以上で、https://***.appspot.com/ssl/ssl.html等にアクセスするとSSL通信が可能となります。

参考URL

0 件のコメント:

コメントを投稿