简体   繁体   English

如何设置SSL

[英]How to set up SSL

I am developing a web application with GWT. 我正在使用GWT开发Web应用程序。 Now it is running in development mode in local server with Jetty. 现在,它正在使用Jetty在本地服务器中以开发模式运行。 Could anyone tell me how can I set up the SSL in this case. 任何人都可以告诉我在这种情况下如何设置SSL。 Thank you in advance. 先感谢您。

I successfully added SSL to a Jetty server in the past following the steps detailed here: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL 我过去按照以下详细步骤成功地将SSL添加到了Jetty服务器: http : //docs.codehaus.org/display/JETTY/How+to+configure+SSL

The following steps are required to configure Jetty for SSL: 要为SSL配置Jetty,需要执行以下步骤:
Step 1: Generate or obtain a public/private key pair and x509 certificate. 步骤1:生成或获取公钥/私钥对和x509证书。
Step 2: Optionally obtain a certificate from a known certificate authority. 步骤2 :(可选)从已知的证书颁发机构获取证书。
Step 3: Load the keys and the certificates into a JSSE Keystore. 步骤3:将密钥和证书加载到JSSE密钥库中。
Step 4: Configure a JsseListener with the location and passwords for the keystore. 步骤4:为JsseListener配置密钥库的位置和密码。

I always recomend placing a general purpose web server in front of the java server. 我总是建议将通用Web服务器放置在java服务器的前面。 It is a reverse proxy for the dinamic html and serves directly the static media. 它是动态HTML的反向代理,直接提供静态媒体。 The configurability ans flexibility of this configuration is great, and sometimes easier and faster, look at cherokee server, fast, light and has a awesome web interface for administration. 此配置的可配置性和灵活性非常好,有时更容易,更快捷,可以看切诺基服务器,而且速度快,轻巧,并且具有用于管理的出色Web界面。

Want to add headers for cross-site ajax?, easy. 想要为跨站点ajax添加标题吗?,很容易。 Configure the *.cache.js to cache forever and the rpc calls to no-cache/private? 将* .cache.js配置为永久缓存,并将rpc调用设置为no-cache / private? two clicks! 两次点击!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM