简体   繁体   English

保护来自智能手机的对Web服务的HTTP请求

[英]Securing HTTP requests to web services from smartphones

Can anyone recommend a strong method to secure HTTP requests to a web service from a smartphone client (iPhone, Android, and BlackBerry)? 谁能推荐一种安全的方法来保护来自智能手机客户端(iPhone,Android和BlackBerry)对Web服务的HTTP请求的安全? Preferably something more secure than an MD5 hash... 最好是比MD5哈希更安全的东西...

Thanks! 谢谢!

Use HTTPS (HTTP Secure) . 使用HTTPS(HTTP安全) That's HTTP with SSL encrtpyion. 那是带有SSL加密的HTTP。

How to configure that depends on the webserver used. 如何配置取决于所使用的Web服务器。 If it's for example Apache HTTP Server, then you should checkout the SSL/TLS Strong Encryption How-To . 如果是Apache HTTP Server,那么您应该签出SSL / TLS强加密方法 Or if it is for example Apache Tomcat, then checkout the SSL Configuration HOW-TO . 或者,例如,如果是Apache Tomcat,则签出SSL Configuration HOW-TO

Once done that, just use https:// URLs instead of http:// URLs to access the web service. 完成此操作后,只需使用https:// URL而不是http:// URL即可访问Web服务。 You can even configure the webserver to redirect from http:// to https:// automatically. 您甚至可以将网络服务器配置为自动从http://重定向到https://。

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

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