我使用的是 Fedora Silverblue,它严重依赖 Flatpak。我有一个 Flatpak 应用 Extension Manager (com.mattjakeman.ExtensionManager),它无法验证 TLS。当我去搜索扩展时,页面显示Connection Error
,下面显示Unacceptable TLS certificate
。在尝试调试问题时,我通过 Flatpak (org.gnome.Epiphany) 安装了 Epiphany。当我尝试访问 Google 时,它无法加载。当我单击标题栏中的锁定图标时,它显示This web sites digital identification is not trusted
。我似乎在 Epiphany 中的每个网站上都看到了这个。据我所知,系统证书可从 Flatpak 应用中获得,但在 Flatpak 应用内,它显示可用证书为 0(我忘记了如何测试,但那是在 Flatpak 应用中运行的 shell 中)。一些 Flatpak 应用(如 Chrome、Firefox 等)没有这个问题。我不知道根本原因是什么,如何修复它,希望有人能帮忙。
更新:以下命令在系统 shell 下似乎可以正常工作,但在 Flatpak 应用 com.mattjakeman.ExtensionManager 和 com.google.Chrome 下则不行(我还没有测试其他应用)。Chrome 不会出现不信任 com.mattjakeman.ExtensionManager 和 org.gnome 等网站的问题。Epiphany 会,尽管 Chrome 似乎也存在同样的证书缺失问题。
[📦 com.google.Chrome ~]$ gnutls-cli -p 443 google.com
Processed 0 CA certificate(s).
Resolving 'google.com:443'...
Connecting to '142.250.69.78:443'...
- Certificate type: X.509
- Got a certificate list of 3 certificates.
- Certificate[0] info:
- subject `CN=*.google.com', issuer `CN=WE2,O=Google Trust Services,C=US', serial 0x6fa8ae57cf6567f909ea8dc3f95fde31, EC/ECDSA key 256 bits, signed using ECDSA-SHA256, activated `2025-03-10 08:36:06 UTC', expires `2025-06-02 08:36:05 UTC', pin-sha256="q/q2yF70lvFjJ5TKLd2nkfAUBqsC2i6Uu57V+AJjfVk="
Public Key ID:
sha1:d9cb09c783a44560bb392de38c27fb183ba25aae
sha256:abfab6c85ef496f1632794ca2ddda791f01406ab02da2e94bb9ed5f802637d59
Public Key PIN:
pin-sha256:q/q2yF70lvFjJ5TKLd2nkfAUBqsC2i6Uu57V+AJjfVk=
- Certificate[1] info:
- subject `CN=WE2,O=Google Trust Services,C=US', issuer `CN=GTS Root R4,O=Google Trust Services LLC,C=US', serial 0x7ff32d6b409d15d5965b05873a7c72e0, EC/ECDSA key 256 bits, signed using ECDSA-SHA384, activated `2023-12-13 09:00:00 UTC', expires `2029-02-20 14:00:00 UTC', pin-sha256="vh78KSg1Ry4NaqGDV10w/cTb9VH3BQUZoCWNa93W/EY="
- Certificate[2] info:
- subject `CN=GTS Root R4,O=Google Trust Services LLC,C=US', issuer `CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE', serial 0x7fe530bf331343bedd821610493d8a1b, EC/ECDSA key 384 bits, signed using RSA-SHA256, activated `2023-11-15 03:43:21 UTC', expires `2028-01-28 00:00:42 UTC', pin-sha256="mEflZT5enoR1FuXLgYYGqnVEoZvmf9c2bVBpiOjYQ0c="
- Status: The certificate is NOT trusted. The certificate issuer is unknown.
*** PKI verification of server certificate failed...
*** Fatal error: Error in the certificate.