ssl - ssl 在 web 开发中是如何工作的?

标签 ssl openssl ssl-certificate

这个问题看似愚蠢,但是却困扰了我很久。

所以我知道使用 SSL 套接字(https?)的网站将加密传输。

我的问题是,它是只加密数据(获取/发布字段?),还是整个页面(我猜这会非常慢)。

如果它是加密的,假设我使用 php 作为后端,我该如何处理加密数据?或者整个开发会像普通网站一样正常。除了一些额外的工作需要在服务器上完成?

我目前在向服务器发送请求时使用 RSA 库(js 和 php)加密一些基本数据(密码、信用卡)。但是,它真的很慢(还是因为我使用了 1024 位加密?)。

现在我的任务是为在线支付 API 开发接口(interface),这需要 SSL 安全站点。所以我想知道 SSL 在开发过程方面如何影响网站。

蒂亚

最佳答案

My problem is, does it only encrypt the data (get/post fields?)

是的。

or the entire page

是的。这个问题和上一个没有区别。 SSL 加密整个请求和响应。通过网络发送的所有内容。

(that would be super slow i guess).

没有。我有实验数据表明它在互联网上的速度不比明文慢三倍。

If it's encrypted, say I'm using php as the backend, how do I handle the encrypted data?

以任何方式“处理加密数据”。 SSL 为您加密和解密它。您只需处理明文。

Or would the entire development be as usual as like it was a normal website.

是的。

Except some additional works need to be done on the server?

除了将相关页面定义为需要SSL,并安装SSL证书。

I'm currently encrypting some essential data (password, credit card) using RSA library (js and php) when sending requests to server. But, it is really slow (or it was because I used a 1024 bit encryption?).

是的,是的。使用 SSL。

And now I'm tasked to develop interface for an online payment API, which requires SSL secured site. So I'm wondering how does SSL impact the site in terms of developing process.

比您已经在做的要少得多。

关于ssl - ssl 在 web 开发中是如何工作的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24463639/

相关文章:

java - 如何创建用于 Apache Tomcat 的 X509 自签名证书

java - trustAnchors 参数必须非空

ssl - Logstash TLS 证书 JKS 到 PKCS8 无效 key 错误

ssl - Python pyOpenssl 服务器不协商 TLS 1.3

amazon-web-services - 某些子域没有挂锁

php - php/drupal 网站中的 SSL

c - openssl/sha.h 似乎计算出了错误的哈希值

asp.net - 在 Asp.Net MVC 中启用特定 Controller 或操作所需的 SSL 客户端证书

laravel - Laravel 开发中的 SSL 证书

apache - 在 raspbian 的 apache2 上强制使用 SSL 和 WWW