Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT、SSL和Glassfish。现在有SSL吗?_Gwt_Ssl_Glassfish - Fatal编程技术网

GWT、SSL和Glassfish。现在有SSL吗?

GWT、SSL和Glassfish。现在有SSL吗?,gwt,ssl,glassfish,Gwt,Ssl,Glassfish,如果这是一个太普通或太简单的问题,我很抱歉,但我不知道我应该在Google中输入什么才能最终找到答案 我有一个GWT应用程序,目前正在Glassfish上运行。我可以在端口8080(http)或8181(https)上运行应用程序。问题是-我现在正在使用SSL吗 默认的自签名证书现在对我来说已经足够了(我知道keytool和import证书),我只需要澄清这个简单的问题 我需要在web.xml中设置安全约束 <security-constraint> <web-resource

如果这是一个太普通或太简单的问题,我很抱歉,但我不知道我应该在Google中输入什么才能最终找到答案

我有一个GWT应用程序,目前正在Glassfish上运行。我可以在端口8080(http)或8181(https)上运行应用程序。问题是-我现在正在使用SSL吗

默认的自签名证书现在对我来说已经足够了(我知道keytool和import证书),我只需要澄清这个简单的问题

我需要在web.xml中设置安全约束

<security-constraint>
<web-resource-collection>
<web-resource-name>sslprotect</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

SSL保护
/*
得到
邮递
保密的
这够了吗?在评论中,Sam写了一些关于“正确实现SSL的全部使用”的内容

所以问题是:这足够了吗?我的应用程序现在受SSL保护了吗


老实说,我在大学里学习过安全算法,但我在实现上失败了。

这应该足够了。
如果你能在URL前面看到https,一切都很好。您可以通过浏览http URL来检查您是否受SSL保护,这将返回一个错误或将您重定向到https URL。

谢谢您的回答。是的,有https,当我尝试访问标准http时,出现错误403。那么我想一切都会好起来的。再次感谢你