简体   繁体   English

如何在客户端和服务器之间提供安全通信?

[英]How to provide secure communication between client & server?

I'm creating a web server using Jetty (v9) and I need any traffic between browsers and the server to be encrypted. 我正在使用Jetty(v9)创建一个Web服务器,我需要在浏览器和服务器之间进行任何流量加密。 I'll be uploading files to the server, plus the client/server will maintain a session carrying sensitive access tokens. 我将上传文件到服务器,而客户端/服务器将维护一个携带敏感访问令牌的会话。

I don't have much experience with web servers, but it seems like the solution is to have the web server serve on port 443 so that communication will use the HTTPS protocol. 我对Web服务器没有多少经验,但似乎解决方案是让Web服务器在端口443上提供服务,以便通信将使用HTTPS协议。

I was going to start running through this tutorial for configuring Jetty with SSL, but before I start messing around with certificates and signing etc. I just wanted to ask if this is the right approach or if there is something else more suitable that I don't know about. 我打算开始使用本教程来配置带有SSL的Jetty,但是在我开始搞乱证书和签名等之前我只是想问这是否是正确的方法,或者是否有其他更合适的东西我不喜欢知道。

在回答您的问题时,使用https确实是正确的方法。

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

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