SSL 证书
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 证书
- 右键单击此链接上的将该文件“另存为”到您的硬盘中。
- 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:
具体语法可参考仪表板中的 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)
- 如果您还没有这样做,请右键单击此链接,将文件“另存为”到您的硬盘中: https://brightdata.com/static/brightdata_proxy_ca.zip
- 双击 ca.crt 文件
- 按照 Windows 的说明安装证书。
- 重启电脑
- 重启,您就可以连接到所需的 Bright Data 产品(住宅代理、Web Unlocker 或 SERP API)
- Once you’ve download the certificate file (see the instruction on the top of this article)
- Type in the address bar:
about:preferences#advanced
- Under “安全” click “View Certificates”
- Select the authorities tab, and click “Import” button below
- Browse to the directory you downloaded the certificate file to, select the certificate file and click “Open”
- In the popup box click the checkbox “Trust this CA to identify websites”
- Click OK to complete the installation
- Make sure Bright Data proxy is configured as Firefox’s proxy, and browse thru proxy to a protected website
- Copy the downloaded certificate file
ca.crt
to the/usr/local/share/ca-certificates/
folder. - Run
sudo update-ca-certificates
. The output of the command should state that 1 certificate was added. - Go to an SSL-protected website to check that everything is working as cted.
- Double-click the downloaded certificate file. You will see the “Keychain Access” application.
- Double-click the “luminati.io” certificate to see a popup with certificate settings.
- Select “Always Trust” in the “When using this certificate” dropdown.
- Close the popup enter your credentials when asked.
- Restart your browser and go to an SSL-protected website to check that everything is working as expected.
- Open up Safari
- Navigate to this page and download the certificate using this link, but first read the following two items.
- Click Install and provide your passcode
- Click Install in the top right corner and then Done
- Go to iPhone “Settings”
- Go to “About”
- Go to “Certificate Trust Settings”
- Enable the “luminati.io” certificate
- You can now go to an SSL-protected website in any browser installed in your system to check that everything is working as expected.
- Download the following certificate and save it on your phone.
- On your phone, look for the certificate through ‘My files’.
- Enter your password and press next.
- Choose a name, preferably something you will recognize like Bright Data.
- Under ‘Used for’, choose ‘VPN and apps’ and click OK.
- You can now go to an SSL-protected website in any browser installed in your system to check that everything is working as expected.
如何忽略 SSL 错误?
在某些情况下,您需要安装我们的证书或忽略 SSL 错误,才能访问特定产品或功能。 如果您不想安装我们的证书,则可以忽略 SSL 错误。 请查看以下不同编程语言的代码片段,高亮部分是为忽略 SSL 错误而需要添加到代码中的内容。
SSL 分析如何工作?
某些功能需要 Proxy Manager 访问 HTTPS 流量。 这可以通过在代理端口配置页面上启用 SSL 分析选项来实现。
一旦允许 Proxy Manager 终止 SSL,您还需要信任 Bright Data Certificate Authority (CA)。
Proxy Manager 将与目标网站创建安全的加密 HTTPS 连接,解密流量以记录请求,并根据您的设置运行规则,然后将响应通过加密 HTTPS 连接传回您的客户端,该连接带有由我们的 CA 证书签名的证书。