我正在谷歌应用引擎上使用GWT java进行项目。我想在我的应用程序中使用SSL。我应该在appspot.com上使用SSL。我应该配置什么来启用我的应用程序上的SSL
任何帮助?
提前致谢
答案 0 :(得分:0)
您不需要为*.appspot.com
做任何事情(而且您不能,这是Google的域名)。
只需使用ssl网址即可。使用网址https://your-app.appspot.com
答案 1 :(得分:0)
您需要为web.xml文件中的url配置https。引用谷歌应用引擎文档:
要声明HTTPS应该用于URL,您可以在部署描述符中使用" user-data-constraint"来设置安全性约束。谁的运输保证"是机密,如下:
<security-constraint>
<web-resource-collection>
<web-resource-name>profile</web-resource-name>
<url-pattern>/profile/*</url-pattern>
</web-resource-collection>
<ustrong textser-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
对于传输保证为机密的网址,使用HTTP(非安全)的请求会自动使用HTTPS重定向到同一网址。