ubuntu 20.04 : snap x509: certificate signed by unknown authority
Solution 1
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)"
have fun...
Solution 2
Had the same issue with Ubuntu Server 20.04, and I solved it by installing the proxy certificates using these instructions:
https://askubuntu.com/questions/73287/how-do-i-install-a-root-certificate
Previously, I had to also convert the certificates (which I exported from Chrome) to .crt
with:
openssl x509 -inform DER -in ssl_certificate.cer -out ssl_certificate.crt
After running the update-ca-certificates
command I had to restart Ubuntu and it worked.
Related videos on Youtube
viper-zero
I have love to computers: coding and hacking, since I was little kid. (I'm white hat!!! ;) I love to learn new coding method, and especially hacking method... hope I'll can have my best in coding :) (I'm also CS student.)
Updated on June 04, 2022Comments
-
viper-zero almost 2 years
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 :)
-
viper-zero almost 4 yearsany one? please....
-
Emsi almost 4 yearsSame here on clean 20.04 server install. shame.
-