The SSL certificate allows you to establish end-to-end encrypted connections when using Residential Proxies, the Web Unlocker or the SERP API.

如果您只是进行初步测试,也可以不使用 SSL 证书,稍后再使用。

使用 SSL 证书非常简单。 只需下载证书并选择在环境中的使用方式。

下载 SSL 证书

  1. 右键单击此链接上的将该文件“另存为”到您的硬盘中。
  2. Unzip the file and choose the certificate to use. Most users - espcially if they are new to Bright Data - should use the *new SSL certificate.

在代码中使用 SSL 证书

如果您编写抓取代码,在大多数情况下,您无需在环境中安装 SSL 证书。 只需在代码中加载 SSL 证书即可。 例如,对于 CURL:

curl --proxy brd.superproxy.io:33335 --proxy-user brd-customer-<account-id>-zone-<zone-name>:<zone-password> --cacert <PATH TO CA.CRT> "https://geo.brdtest.com/mygeo.json"

具体语法可参考仪表板中的 Bright Data 示例代码。

安装 SSL 证书

在某些情况下,例如使用某些不允许从硬盘加载证书的第三方工具时,您仍需要在计算机上安装 SSL 证书。

Where do I install the certificate?

The SSL certificate needs to be installed on the host that is running the actual scraping code or application.

In most cases this is your PC but, if you use a cloud-hosted server to run your code, you need to install the SSL certificate on the server itself.

Installation instructions

这只需要 2 分钟,只需按照以下说明操作即可:

  • 如果您还没有这样做,请右键单击此链接,将文件“另存为”到您的硬盘中: https://brightdata.com/static/brightdata_proxy_ca.zip
  • 双击 ca.crt 文件
  • 按照 Windows 的说明安装证书。
  • 重启电脑
  • 重启,您就可以连接到所需的 Bright Data 产品(住宅代理、Web Unlocker 或 SERP API)

如何忽略 SSL 错误?

在某些情况下,您需要安装我们的证书或忽略 SSL 错误,才能访问特定产品或功能。 如果您不想安装我们的证书,则可以忽略 SSL 错误。 请查看以下不同编程语言的代码片段,高亮部分是为忽略 SSL 错误而需要添加到代码中的内容。

SSL 分析如何工作?

某些功能需要 Proxy Manager 访问 HTTPS 流量。 这可以通过在代理端口配置页面上启用 SSL 分析选项来实现。

一旦允许 Proxy Manager 终止 SSL,您还需要信任 Bright Data Certificate Authority (CA)

Proxy Manager 将与目标网站创建安全的加密 HTTPS 连接,解密流量以记录请求,并根据您的设置运行规则,然后将响应通过加密 HTTPS 连接传回您的客户端,该连接带有由我们的 CA 证书签名的证书。