ubuntu 20.04:snap x509:由未知权威签名的证书 [英] ubuntu 20.04 : snap x509: certificate signed by unknown authority

查看:287
本文介绍了ubuntu 20.04:snap x509:由未知权威签名的证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的 ubuntu 从 19 更新到 20.04 的新版本.当我想通过 apt/apt-get 安装软件包时,它可以工作但是当我想通过 snap 安装时,我收到这个异常:从频道稳定"下载 snapsnap-store"(415)(获取 https://canonical-bos01.cdn.snapcraft.io/download-origin/canonical-lgw01/gjf3IPXoRiipCu9K0kVu52f0H56fIksg_415.snap?token=1589824800_6000db7922b4a18d611be453795e3cccb71a1647&interactive=1:x509:由未知机构签署的证书).我使用代理:netspark.com 并且我有 CA 证书,我只是不知道如何为 snap 安装它,(我已经使用了 update-ca-certificates,但是对于 snap,它不起作用!)在ubuntu 19上我没有这个问题......谢谢你们:)

I update my ubuntu from 19 to the new version of 20.04. and when I want to install packages via apt / apt-get it works but when I want to install via snap, I receive this exception: Download snap "snap-store" (415) from channel "stable" (Get https://canonical-bos01.cdn.snapcraft.io/download-origin/canonical-lgw01/gjf3IPXoRiipCu9K0kVu52f0H56fIksg_415.snap?token=1589824800_6000db7922b4a18d611be453795e3cccb71a1647&interactive=1: x509: certificate signed by unknown authority). I use proxy: netspark.com and I have there's CA-Certificate, I just don't know how to install it for snap, (I already used update-ca-certificates, but for snap it doesn't work!) on ubuntu 19 I didn't have this problem... thank you guys :)

推荐答案

我真的对证书主题有深入的了解 ;),但我终于在 snap 页面看到了一种帖子,上面说在 snap 2.45+ 版本上,你可以通过命令添加证书:

I really had deep into the certificate subject ;), but I finally saw kind of post at snap page, which says that on snap 2.45+ ver, you can add cert by the command:

snap set system store-certs.cert1="$(cat myca.crt)"

玩得开心...

这篇关于ubuntu 20.04:snap x509:由未知权威签名的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆