How to verify downloaded file with .sig file?

前端 未结 4 766
醉话见心
醉话见心 2021-01-29 19:41

When I download GCC, it also has a .sig file, and I think it is provided to verify downloaded file. (I downloaded GCC from here).

But I can\'t figure out ho

4条回答
  •  青春惊慌失措
    2021-01-29 20:37

    You have to search the public keyservers for the given key id: in your case ID C3C45C06 Import the found key in your local keystore and after this the verification should be OK. I use Ubuntu 12.04 and it comes with Seahorse key management software. Before the key import I was seeing this:

    ~/Downloads$ gpg --verify --keyring ./gnu-keyring.gpg icecat-31.5.0.en-US.linux-x86_64.tar.bz2.sig icecat-31.5.0.en-US.linux-x86_64.tar.bz2
    gpg: Signature made  9.03.2015 (пн) 22,35,52 EET using RSA key ID D7E04784
    gpg: Can't check signature: public key not found
    

    After the key import I was seeing this:

    ~/Downloads$ gpg --verify --keyring ./gnu-keyring.gpg icecat-31.5.0.en-US.linux-x86_64.tar.bz2.sig icecat-31.5.0.en-US.linux-x86_64.tar.bz2
    gpg: Signature made  9.03.2015 (пн) 22,35,52 EET using RSA key ID D7E04784
    gpg: Good signature from "Ruben Rodriguez (GNU IceCat releases key) "
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg:          There is no indication that the signature belongs to the owner.
    Primary key fingerprint: A573 69A8 BABC 2542 B5A0  368C 3C76 EED7 D7E0 4784
    

提交回复
热议问题