将用户信任的证书添加到 FireTV

Add a user trusted certificate to FireTV

有没有办法将 CA 证书添加到 FireTV 棒设备?

我可以使用 adb 登录设备,进入开发菜单,但找不到任何东西。

我需要的是给设备添加一个自签名证书。

知道了。要点:

adb push charles-ssl-proxying-certificate.pem /storage/emulated/0/Download
adb shell am start -a "android.intent.action.VIEW" -d "file:///storage/emulated/0/Download/charles-ssl-proxying-certificate.pem" -t "application/x-x509-ca-cert"

来自https://developer.amazon.com/docs/fire-tv/network-proxy.html

我刚刚用我自己的证书文件替换了上面的charles-ssl-proxying-certificate.pemmycert.cer - 是的,即使是 cer 格式也可以。

我刚刚按照此说明和其他说明在我的 Fire TV 上安装我的 Home RootCA 证书作为受信任的证书,我需要它才能通过 HTTPS 连接到我的 NAS 并验证它的证书(我的 NAS 有一个 HTTPS 证书由我的 Home RootCA 颁发)

这是我完成的所有步骤,它们非常有效:

  1. https://dl.google.com/android/repository/platform-tools_r31.0.3-windows.zip
  2. 下载并提取 adb
  3. 为了便于使用,将提取的文件夹添加到您的 PATH(可以跳过此步骤,但您需要从文件夹内 运行 adb)
  4. 打开 cmd 并移动到包含您的证书的文件夹(如果您不为 adb 使用 PATH,我建议您将 adb 和您的证书放在同一个文件夹中,然后将 cmd 移动到那里)
  5. 在 Fire TV 上启用调试 (https://developer.amazon.com/docs/fire-tv/connecting-adb-to-device.html#turnondebugging)
  6. 通过“adb connect”连接到您的 Fire TV (https://developer.amazon.com/docs/fire-tv/connecting-adb-to-device.html#connectingadboptions)
  7. 使用“adb push”推送您的证书
  8. 使用“adb shell”安装您的证书
  9. 为您的证书提供一个名称,并确保选择“VPN 和应用程序”用于证书使用
  10. 出于安全原因,您需要输入您的亚马逊密码。
  11. 享受您的新证书

示例命令如下:

adb connect 1.1.1.1:5555
adb push MyRootCA.crt /storage/emulated/0/Download
adb shell am start -a "android.intent.action.VIEW" -d "file:///storage/emulated/0/Download/MyRootCA.crt" -t "application/x-x509-ca-cert"

希望这对某人有所帮助:)