GAE/J+独自ドメインでSSL通信をしようとすると | sola's note

sola's note

日ごろのメモを書いていきます。何か新しいものを作るために。

Error: Forbidden
Your client does not have permission to get URL /hoge/ from this server.

エラーになります。(2012/05/30現在)

以前紹介しましたが、
通常、GAE/J(Slim3)でSSL通信を設定する場合、

・appengine-web.xmlファイルに「ssl-enabled」を有効にする
<ssl-enabled>true</ssl-enabled>

・web.xmlファイルに「security-constraint」を記述する、
<security-constraint>
    <web-resource-collection>
        <url-pattern>/hoge/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

の記述が必要になります。
この場合、

http://[GAEのドメイン]/hoge/

にアクセスすると、自動的にhttpsとなる仕様ですが、
GAEのドメインの部分を、独自ドメインを用意・設定してアクセスすると、
前述したエラーとなります。

Googleの説明によると
現在はテスト中らしいです。

Trusted Tester Features>SSL for Custom Domains
https://developers.google.com/appengine/docs/features?hl=ja