mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-25 23:39:37 -05:00
Revise text and add troubleshooting FAQ section
This commit is contained in:
parent
2ea61e79d1
commit
99da1668b5
@ -15,7 +15,7 @@ On Digital Signatures and Key Verification
|
||||
What Digital Signatures Can and Cannot Prove
|
||||
--------------------------------------------
|
||||
|
||||
Most people – even programmers – are confused about the basic concepts underlying digital signatures.
|
||||
Most people --- even programmers --- are confused about the basic concepts underlying digital signatures.
|
||||
Therefore, most people should read this section, even if it looks trivial at first sight.
|
||||
|
||||
Digital signatures can prove both **authenticity** and **integrity** to a reasonable degree of certainty.
|
||||
@ -25,63 +25,80 @@ Digital signatures can prove both **authenticity** and **integrity** to a reason
|
||||
Digital signatures **cannot** prove any other property, e.g., that the signed file is not malicious.
|
||||
In fact, there is nothing that could stop someone from signing a malicious program (and it happens from time to time in reality).
|
||||
|
||||
The point is, of course, that people must choose who they will trust (e.g., Linus Torvalds, Microsoft, the Qubes Project, etc.) and assume that if a given file was signed by a trusted party, then it should not be malicious or buggy in some horrible way.
|
||||
But the decision of whether to trust any given party is beyond the scope of digital signatures.
|
||||
The point is that we must decide who we will trust (e.g., Linus Torvalds, Microsoft, or the Qubes Project) and assume that if a given file was signed by a trusted party, then it should not be malicious or negligently buggy.
|
||||
The decision of whether to trust any given party is beyond the scope of digital signatures.
|
||||
It's more of a sociological and political decision.
|
||||
|
||||
Once we make the decision to trust certain parties, digital signatures are useful, because they make it possible for us to limit our trust only to those few parties we choose and not to worry about all the "Bad Things That Can Happen In The Middle" between us and them, e.g., server compromises (qubes-os.org will surely be compromised one day), dishonest IT staff at the hosting company, dishonest staff at the ISPs, Wi-Fi attacks, etc.
|
||||
Once we make the decision to trust certain parties, digital signatures are useful, because they make it possible for us to limit our trust only to those few parties we choose and not to worry about all the bad things that can happen between us and them, e.g., server compromises (qubes-os.org will surely be compromised one day, so [don't blindly trust the live version of this site][website-trust]), dishonest IT staff at the hosting company, dishonest staff at the ISPs, Wi-Fi attacks, etc.
|
||||
We call this philosophy [Distrusting the Infrastructure].
|
||||
|
||||
By verifying all the files we download which purport to be authored by a party we've chosen to trust, we eliminate concerns about the bad things discussed above, since we can easily detect whether any files have been tampered with (and subsequently choose to refrain from executing, installing, or opening them).
|
||||
By verifying all the files we download that purport to be authored by a party we've chosen to trust, we eliminate concerns about the bad things discussed above, since we can easily detect whether any files have been tampered with (and subsequently choose to refrain from executing, installing, or opening them).
|
||||
|
||||
However, for digital signatures to make any sense, we must ensure that the public keys we use for signature verification are indeed the original ones.
|
||||
Anybody can generate a GPG key pair that purports to belong to "The Qubes Project," but of course only the key pair that we (i.e., the Qubes developers) generated is the legitimate one. The next section explains how to verify the validity of the Qubes signing keys.
|
||||
Anybody can generate a GPG key pair that purports to belong to "The Qubes Project," but of course only the key pair that we (i.e., the Qubes developers) generated is the legitimate one.
|
||||
The next section explains how to verify the validity of the Qubes signing keys in the process of verifying a Qubes ISO.
|
||||
|
||||
|
||||
Importing Qubes Signing Keys
|
||||
----------------------------
|
||||
How to Verify Qubes ISO Signatures
|
||||
----------------------------------
|
||||
|
||||
Every file published by the Qubes Project (ISO, RPM, TGZ files and git repositories) is digitally signed by one of the developer or release signing keys.
|
||||
This section will guide you through the process of verifying a Qubes ISO by checking its PGP signature.
|
||||
There are three basic steps in this process:
|
||||
|
||||
1. [Get the Qubes Master Signing Key and verify its authenticity][QMSK]
|
||||
2. [Get the Release Signing Key][RSK]
|
||||
3. [Verify your Qubes ISO][signature file]
|
||||
|
||||
If you run into any problems, please consult the [Troubleshooting FAQ] below.
|
||||
|
||||
|
||||
### 1. Get the Qubes Master Signing Key and verify its authenticity
|
||||
|
||||
Every file published by the Qubes Project (ISO, RPM, TGZ files and Git repositories) is digitally signed by one of the developer keys or Release Signing Keys.
|
||||
Each such key is signed by the [Qubes Master Signing Key] (`0xDDFA1A3E36879494`).
|
||||
The developer signing keys are set to expire after one year, while the Qubes Master Signing Key and Release Signing Keys have no expiration date.
|
||||
This Qubes Master Signing Key was generated on and is kept only on a dedicated, air-gapped "vault" machine, and the private portion will (hopefully) never leave this isolated machine.
|
||||
|
||||
The public portion of the Qubes Master Signing Key can be imported directly from a [keyserver] (specified on first use with `--keyserver <URI>`, keyserver saved in `~/.gnupg/gpg.conf`), e.g.,
|
||||
There are several ways to get the Qubes Master Signing Key.
|
||||
|
||||
gpg --keyserver pool.sks-keyservers.net --recv-keys 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
|
||||
- Fetch it with GPG:
|
||||
|
||||
or downloaded [here][Qubes Master Signing Key] and imported with gpg,
|
||||
$ gpg --fetch-keys https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
|
||||
|
||||
$ gpg --import ./qubes-master-signing-key.asc
|
||||
- Download it as a [file][Qubes Master Signing Key], then import it with GPG:
|
||||
|
||||
or fetched directly with gpg.
|
||||
$ gpg --import ./qubes-master-signing-key.asc
|
||||
|
||||
$ gpg --fetch-keys https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
|
||||
- Get it from a public [keyserver] (specified on first use with `--keyserver <URI>`, then saved in `~/.gnupg/gpg.conf`), e.g.:
|
||||
|
||||
For additional security we also publish the fingerprint of the Qubes Master Signing Key here in this document:
|
||||
$ gpg --keyserver pool.sks-keyservers.net --recv-keys 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
|
||||
|
||||
The Qubes Master Signing Key is also available in the [Qubes Security Pack] and in the archives of the project's [developer][devel-master-key-msg] and [user][user-master-key-msg] [mailing lists].
|
||||
|
||||
Once you have obtained the Qubes Master Signing Key, you should verify the fingerprint of this key very carefully by obtaining copies of the fingerprint from multiple independent sources and comparing them to the downloaded key's fingerprint to ensure they match.
|
||||
Here are some ideas:
|
||||
|
||||
- Use the PGP Web of Trust.
|
||||
- Check the key against different keyservers.
|
||||
- Use different search engines to search for the fingerprint.
|
||||
- Use Tor to view and search for the fingerprint on various websites.
|
||||
- Use various VPNs and proxy servers.
|
||||
- Use different Wi-Fi networks (work, school, internet cafe, etc.).
|
||||
- Ask people to post the fingerprint in various forums and chat rooms.
|
||||
- Check against PDFs and photographs in which the fingerprint appears
|
||||
(e.g., slides from a talk or on a T-shirt).
|
||||
- Repeat all of the above from different computers and devices.
|
||||
|
||||
In addition, some operating systems have built-in keyrings containing keys capable of validating the Qubes Master Signing Key.
|
||||
For example, if you have a Debian system, then your keyring may already contain the necessary keys.
|
||||
|
||||
For additional security, we also publish the fingerprint of the Qubes Master Signing Key here (but [remember not to blindly trust the live version of this website][website-trust]):
|
||||
|
||||
pub 4096R/36879494 2010-04-01
|
||||
Key fingerprint = 427F 11FD 0FAA 4B08 0123 F01C DDFA 1A3E 3687 9494
|
||||
uid Qubes Master Signing Key
|
||||
|
||||
There should also be a copy of this key at the project's main website, in the [Qubes Security Pack], and in the archives of the project's [developer][devel-master-key-msg] and [user][user-master-key-msg] [mailing lists].
|
||||
|
||||
Once you have obtained the Qubes Master Signing Key, you should verify the fingerprint of this key very carefully by obtaining copies of the fingerprint from multiple independent sources and comparing them to the downloaded key's fingerprint to ensure they match.
|
||||
Here are some ideas:
|
||||
|
||||
* Use the PGP Web of Trust.
|
||||
* Check the key against different keyservers.
|
||||
* Use different search engines to search for the fingerprint.
|
||||
* Use Tor to view and search for the fingerprint on various websites.
|
||||
* Use various VPNs and proxy servers.
|
||||
* Use different Wi-Fi networks (work, school, internet cafe, etc.).
|
||||
* Ask people to post the fingerprint in various forums and chat rooms.
|
||||
* Check against PDFs and photographs in which the fingerprint appears
|
||||
(e.g., slides from a talk or on a T-shirt).
|
||||
* Repeat all of the above from different computers and devices.
|
||||
|
||||
In addition, some operating systems have built-in keyrings containing keys capable of validating the Qubes Master Signing Key.
|
||||
For example, if you have a Debian system, then your debian-keyring may already contain the necessary keys.
|
||||
|
||||
Once you're confident that you have the legitimate Qubes Master Signing Key, set its trust level to "ultimate" (oh, well), so that it can be used to automatically verify all the keys signed by the Qubes Master Signing Key:
|
||||
|
||||
Once you're confident that you have the legitimate Qubes Master Signing Key, set its trust level to "ultimate" so that it can be used to automatically verify all the keys signed by the Qubes Master Signing Key (in particular, Release Signing Keys).
|
||||
|
||||
$ gpg --edit-key 0x36879494
|
||||
gpg (GnuPG) 1.4.18; Copyright (C) 2014 Free Software Foundation, Inc.
|
||||
@ -123,59 +140,80 @@ Once you're confident that you have the legitimate Qubes Master Signing Key, set
|
||||
|
||||
gpg> q
|
||||
|
||||
Now you can easily download any of the developer or release signing keys that happen to be used to sign particular ISO, RPM, TGZ files or git tags.
|
||||
Now, when you import any of the legitimate Qubes developer keys and Release Signing Keys used to sign ISOs, RPMs, TGZs, Git tags, and Git commits, they will already be trusted in virtue of being signed by the Qubes Master Signing Key.
|
||||
|
||||
For example, the Qubes OS [Release 3 Signing Key] (`0xCB11CA1D03FA5082`) is used for all Release 3 ISO images:
|
||||
|
||||
$ gpg --recv-keys 0xC52261BE0A823221D94CA1D1CB11CA1D03FA5082
|
||||
gpg: requesting key 03FA5082 from hkp server keys.gnupg.net
|
||||
gpg: key 03FA5082: public key "Qubes OS Release 3 Signing Key" imported
|
||||
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
|
||||
gpg: depth: 0 valid: 1 signed: 1 trust: 0-, 0q, 0n, 0m, 0f, 1u
|
||||
gpg: depth: 1 valid: 1 signed: 0 trust: 1-, 0q, 0n, 0m, 0f, 0u
|
||||
gpg: Total number processed: 1
|
||||
gpg: imported: 1 (RSA: 1)
|
||||
### 2. Get the Release Signing Key
|
||||
|
||||
You can also download all the currently used developers' signing keys and current and older release signing keys (and also a copy of the Qubes Master Signing Key) from the [Qubes OS Keyserver] and from the [Qubes Security Pack].
|
||||
The filename of the Release Signing Key for your version is `qubes-release-X-signing-key.asc`, where `X` is the major version number of your Qubes release.
|
||||
There are several ways to get the Release Signing Key for your Qubes release.
|
||||
|
||||
The developer signing keys are set to be valid for 1 year only, while the Qubes Master Signing Key has no expiration date. This latter key was generated and is kept only within a dedicated, air-gapped "vault" machine, and the private portion will (hopefully) never leave this isolated machine.
|
||||
- Fetch it with GPG:
|
||||
|
||||
You can now verify the ISO image (`Qubes-R3.2-x86_64.iso`) matches its signature (`Qubes-R3.2-x86_64.iso.asc`):
|
||||
$ gpg --fetch-keys https://keys.qubes-os.org/keys/qubes-release-X-signing-key.asc
|
||||
|
||||
$ gpg -v --verify Qubes-R3.2-x86_64.iso.asc Qubes-R3.2-x86_64.iso
|
||||
- Download it as a file.
|
||||
You can find the Release Signing Key for your Qubes version on the [Downloads] page.
|
||||
You can also download all the currently used developers' signing keys, Release Signing Keys, and the Qubes Master Signing Key from the [Qubes Security Pack] and the [Qubes OS Keyserver].
|
||||
Once you've downloaded your Release Signing Key, import it with GPG:
|
||||
|
||||
$ gpg --import ./qubes-release-X-signing-key.asc
|
||||
|
||||
The Release Signing Key should be signed by the Qubes Master Signing Key:
|
||||
|
||||
$ gpg --list-sigs "Qubes OS Release X Signing Key"
|
||||
pub rsa4096 2017-03-06 [SC]
|
||||
5817A43B283DE5A9181A522E1848792F9E2795E9
|
||||
uid [ full ] Qubes OS Release X Signing Key
|
||||
sig 3 1848792F9E2795E9 2017-03-06 Qubes OS Release X Signing Key
|
||||
sig DDFA1A3E36879494 2017-03-08 Qubes Master Signing Key
|
||||
|
||||
This is just an example, so the output you receive will not look exactly the same.
|
||||
What matters is that the last line shows that this key is signed by the Qubes Master Signing Key, which verifies the authenticity of the Release Signing Key.
|
||||
It is not necessary to independently verify the authenticity of the Release Signing Key.
|
||||
|
||||
|
||||
### 3. Verify your Qubes ISO
|
||||
|
||||
Every Qubes ISO is released with a detached PGP signature file, which you can find on the [Downloads] page alongside the ISO.
|
||||
If the filename of your ISO is `Qubes-RX-x86_64.iso`, then the name of the signature file for that ISO is `Qubes-RX-x86_64.iso.asc`, where `X` is a specific version of Qubes.
|
||||
The signature filename is always the same as the ISO filename followed by `.asc`.
|
||||
|
||||
Once you've downloaded both the ISO and its signature file, you can verify the ISO using GPG:
|
||||
|
||||
$ gpg -v --verify Qubes-RX-x86_64.iso.asc Qubes-RX-x86_64.iso
|
||||
gpg: armor header: Version: GnuPG v1
|
||||
gpg: Signature made Tue 08 Mar 2016 07:40:56 PM PST using RSA key ID 03FA5082
|
||||
gpg: using PGP trust model
|
||||
gpg: Good signature from "Qubes OS Release 3 Signing Key"
|
||||
gpg: Good signature from "Qubes OS Release X Signing Key"
|
||||
gpg: binary signature, digest algorithm SHA256
|
||||
|
||||
The Release 3 Signing Key used to sign this ISO image should be signed by the Qubes Master Signing Key:
|
||||
|
||||
$ gpg --list-sig 03FA5082
|
||||
pub 4096R/03FA5082 2014-11-19
|
||||
uid Qubes OS Release 3 Signing Key
|
||||
sig 3 03FA5082 2014-11-19 Qubes OS Release 3 Signing Key
|
||||
sig 36879494 2014-11-19 Qubes Master Signing Key
|
||||
This is just an example, so the output you receive will not look exactly the same.
|
||||
What matters is the line that says `Good signature from "Qubes OS Release X Signing Key"`.
|
||||
This confirms that the signature on the ISO is good.
|
||||
|
||||
|
||||
Verifying Digests
|
||||
-----------------
|
||||
How to Verify Qubes ISO Digests
|
||||
-------------------------------
|
||||
|
||||
Each ISO is also accompanied by a plain text file ending in `.DIGESTS`.
|
||||
This file contains the output of running several different crytographic hash functions on the ISO in order to obtain alphanumeric outputs known as "digests" or "hash values."
|
||||
These hash values are provided as an alternative verification method to PGP signatures (though the `.DIGESTS` file is itself also PGP-signed --- see below).
|
||||
Each Qubes ISO is also accompanied by a plain text file ending in `.DIGESTS`.
|
||||
This file contains the output of running several different cryptographic hash functions on the ISO in order to obtain alphanumeric outputs known as "digests" or "hash values."
|
||||
These hash values are provided as an alternative verification method to PGP signatures (though the digest file is itself also PGP-signed --- see below).
|
||||
If you've already verified the signatures on the ISO directly, then verifying digests is not necessary.
|
||||
You can always find all the `.DIGESTS` files for every Qubes ISO in the [Qubes Security Pack].
|
||||
You can find the `.DIGESTS` for your ISO on the [Downloads] page, and you can always find all the digest files for every Qubes ISO in the [Qubes Security Pack].
|
||||
|
||||
As an example, `Qubes-R3.2-x86_64.iso` is accompanied by `Qubes-R3.2-x86_64.iso.DIGESTS` which has the following content:
|
||||
If the filename of your ISO is `Qubes-RX-x86_64.iso`, then the name of the digest file for that ISO is `Qubes-RX-x86_64.iso.DIGESTS`, where `X` is a specific version of Qubes.
|
||||
The digest filename is always the same as the ISO filename followed by `.DIGESTS`.
|
||||
Since the digest file is a plain text file, you can open it with any text editor.
|
||||
Inside, you should find text that looks similar to this:
|
||||
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
3c951138b8b9867d8657f173c1b58b82 *Qubes-R3.2-x86_64.iso
|
||||
1fc9508160d7c4cba6cacc3025165b0f996c843f *Qubes-R3.2-x86_64.iso
|
||||
6b998045a513dcdd45c1c6e61ace4f1b4e7eff799f381dccb9eb0170c80f678a *Qubes-R3.2-x86_64.iso
|
||||
de1eb2e76bdb48559906f6fe344027ece20658d4a7f04ba00d4e40c63723171c62bdcc869375e7a4a4499d7bff484d7a621c3acfe9c2b221baee497d13cd02fe *Qubes-R3.2-x86_64.iso
|
||||
3c951138b8b9867d8657f173c1b58b82 *Qubes-RX-x86_64.iso
|
||||
1fc9508160d7c4cba6cacc3025165b0f996c843f *Qubes-RX-x86_64.iso
|
||||
6b998045a513dcdd45c1c6e61ace4f1b4e7eff799f381dccb9eb0170c80f678a *Qubes-RX-x86_64.iso
|
||||
de1eb2e76bdb48559906f6fe344027ece20658d4a7f04ba00d4e40c63723171c62bdcc869375e7a4a4499d7bff484d7a621c3acfe9c2b221baee497d13cd02fe *Qubes-RX-x86_64.iso
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
@ -198,62 +236,67 @@ Four digests have been computed for this ISO.
|
||||
The hash functions used, in order from top to bottom, are MD5, SHA1, SHA256, and SHA512.
|
||||
One way to verify that the ISO you downloaded matches any of these hash values is by using the respective `*sum` programs:
|
||||
|
||||
$ md5sum -c Qubes-R3.2-x86_64.iso.DIGESTS
|
||||
Qubes-R3.2-x86_64.iso: OK
|
||||
$ md5sum -c Qubes-RX-x86_64.iso.DIGESTS
|
||||
Qubes-RX-x86_64.iso: OK
|
||||
md5sum: WARNING: 23 lines are improperly formatted
|
||||
$ sha1sum -c Qubes-R3.2-x86_64.iso.DIGESTS
|
||||
Qubes-R3.2-x86_64.iso: OK
|
||||
$ sha1sum -c Qubes-RX-x86_64.iso.DIGESTS
|
||||
Qubes-RX-x86_64.iso: OK
|
||||
sha1sum: WARNING: 23 lines are improperly formatted
|
||||
$ sha256sum -c Qubes-R3.2-x86_64.iso.DIGESTS
|
||||
Qubes-R3.2-x86_64.iso: OK
|
||||
$ sha256sum -c Qubes-RX-x86_64.iso.DIGESTS
|
||||
Qubes-RX-x86_64.iso: OK
|
||||
sha256sum: WARNING: 23 lines are improperly formatted
|
||||
$ sha512sum -c Qubes-R3.2-x86_64.iso.DIGESTS
|
||||
Qubes-R3.2-x86_64.iso: OK
|
||||
$ sha512sum -c Qubes-RX-x86_64.iso.DIGESTS
|
||||
Qubes-RX-x86_64.iso: OK
|
||||
sha512sum: WARNING: 23 lines are improperly formatted
|
||||
|
||||
The `OK` response tells us that the hash value for that particular hash function matches.
|
||||
The program also warns us that there are 23 improperly formatted lines, but this is to be expected.
|
||||
This is because each file contains lines for several different hash values (as mentioned above), but each `*sum` program verifies only the line for its own hash function.
|
||||
In addition, there are lines for the PGP signature which the `*sum` programs do not know how to read.
|
||||
In addition, there are lines for the PGP signature that the `*sum` programs do not know how to read.
|
||||
Therefore, it is safe to ignore these warning lines.
|
||||
|
||||
Another way is to use `openssl` to compute each hash value, then compare them to the contents of the `.DIGESTS` file.:
|
||||
Another way is to use `openssl` to compute each hash value, then compare them to the contents of the digest file.:
|
||||
|
||||
$ openssl dgst -md5 Qubes-R3.2-x86_64.iso
|
||||
MD5(Qubes-R3.2-x86_64.iso)= 3c951138b8b9867d8657f173c1b58b82
|
||||
$ openssl dgst -sha1 Qubes-R3.2-x86_64.iso
|
||||
SHA1(Qubes-R3.2-x86_64.iso)= 1fc9508160d7c4cba6cacc3025165b0f996c843f
|
||||
$ openssl dgst -sha256 Qubes-R3.2-x86_64.iso
|
||||
SHA256(Qubes-R3.2-x86_64.iso)= 6b998045a513dcdd45c1c6e61ace4f1b4e7eff799f381dccb9eb0170c80f678a
|
||||
$ openssl dgst -sha512 Qubes-R3.2-x86_64.iso
|
||||
SHA512(Qubes-R3.2-x86_64.iso)= de1eb2e76bdb48559906f6fe344027ece20658d4a7f04ba00d4e40c63723171c62bdcc869375e7a4a4499d7bff484d7a621c3acfe9c2b221baee497d13cd02fe
|
||||
$ openssl dgst -md5 Qubes-RX-x86_64.iso
|
||||
MD5(Qubes-RX-x86_64.iso)= 3c951138b8b9867d8657f173c1b58b82
|
||||
$ openssl dgst -sha1 Qubes-RX-x86_64.iso
|
||||
SHA1(Qubes-RX-x86_64.iso)= 1fc9508160d7c4cba6cacc3025165b0f996c843f
|
||||
$ openssl dgst -sha256 Qubes-RX-x86_64.iso
|
||||
SHA256(Qubes-RX-x86_64.iso)= 6b998045a513dcdd45c1c6e61ace4f1b4e7eff799f381dccb9eb0170c80f678a
|
||||
$ openssl dgst -sha512 Qubes-RX-x86_64.iso
|
||||
SHA512(Qubes-RX-x86_64.iso)= de1eb2e76bdb48559906f6fe344027ece20658d4a7f04ba00d4e40c63723171c62bdcc869375e7a4a4499d7bff484d7a621c3acfe9c2b221baee497d13cd02fe
|
||||
|
||||
(Notice that the outputs match the values from the `.DIGESTS` file.)
|
||||
(Notice that the outputs match the values from the digest file.)
|
||||
|
||||
However, it is possible that an attacker replaced `Qubes-R3.2-x86_64.iso` with a malicious ISO, computed the hash values for that ISO, and replaced the values in `Qubes-R3.2-x86_64.iso.DIGESTS` with his own set of values.
|
||||
However, it is possible that an attacker replaced `Qubes-RX-x86_64.iso` with a malicious ISO, computed the hash values for that ISO, and replaced the values in `Qubes-RX-x86_64.iso.DIGESTS` with his own set of values.
|
||||
Therefore, ideally, we should also verify the authenticity of the listed hash values.
|
||||
Since `Qubes-R3.2-x86_64.iso.DIGESTS` is a clearsigned PGP file, we can use `gpg` to verify it from the command line:
|
||||
Since `Qubes-RX-x86_64.iso.DIGESTS` is a clearsigned PGP file, we can use GPG to verify it from the command line:
|
||||
|
||||
$ gpg -v --verify Qubes-R3.2-x86_64.iso.DIGESTS
|
||||
gpg: armor header: Hash: SHA256
|
||||
gpg: armor header: Version: GnuPG v2
|
||||
gpg: original file name=''
|
||||
gpg: Signature made Tue 20 Sep 2016 10:37:03 AM PDT using RSA key ID 03FA5082
|
||||
gpg: using PGP trust model
|
||||
gpg: Good signature from "Qubes OS Release 3 Signing Key"
|
||||
gpg: textmode signature, digest algorithm SHA256
|
||||
1. [Get the Qubes Master Signing Key and verify its authenticity][QMSK]
|
||||
2. [Get the Release Signing Key][RSK]
|
||||
3. Verify the signature in the digest file:
|
||||
|
||||
$ gpg -v --verify Qubes-RX-x86_64.iso.DIGESTS
|
||||
gpg: armor header: Hash: SHA256
|
||||
gpg: armor header: Version: GnuPG v2
|
||||
gpg: original file name=''
|
||||
gpg: Signature made Tue 20 Sep 2016 10:37:03 AM PDT using RSA key ID 03FA5082
|
||||
gpg: using PGP trust model
|
||||
gpg: Good signature from "Qubes OS Release X Signing Key"
|
||||
gpg: textmode signature, digest algorithm SHA256
|
||||
|
||||
The signature is good.
|
||||
Assuming our copy of the `Qubes OS Release 3 Signing Key` is also authentic (see above), we can be confident that these hash values came from the Qubes devs.
|
||||
If our copy of the `Qubes OS Release X Signing Key` is being validated by the authentic Qubes Master Signing Key (see [above][QMSK]), we can be confident that these hash values came from the Qubes devs.
|
||||
|
||||
|
||||
Verifying Qubes Code
|
||||
--------------------
|
||||
How to Verify Qubes Code
|
||||
------------------------
|
||||
|
||||
Developers who fetch code from our Git server should always verify the PGP signature of the tag on the latest commit.
|
||||
In some cases, commits themselves may also be signed.
|
||||
Any unsigned commit that is not followed by a signed tag should not be trusted!
|
||||
|
||||
To verify a signature on a git tag:
|
||||
To verify a signature on a Git tag:
|
||||
|
||||
$ git tag -v <tag name>
|
||||
|
||||
@ -261,7 +304,7 @@ or
|
||||
|
||||
$ git verify-tag <tag name>
|
||||
|
||||
To verify a signature on a git commit:
|
||||
To verify a signature on a Git commit:
|
||||
|
||||
$ git log --show-signature <commit ID>
|
||||
|
||||
@ -270,12 +313,128 @@ or
|
||||
$ git verify-commit <commit ID>
|
||||
|
||||
|
||||
Troubleshooting FAQ
|
||||
-------------------
|
||||
|
||||
|
||||
### Why am I getting "Can't check signature: public key not found"?
|
||||
|
||||
You don't have the correct [Release Signing Key][RSK].
|
||||
|
||||
|
||||
### Why am I getting "BAD signature from 'Qubes OS Release X Signing Key'"?
|
||||
|
||||
The problem could be one or more of the following:
|
||||
|
||||
- You're trying to verify the wrong file(s).
|
||||
Read this page again carefully.
|
||||
- You're using the wrong GPG command.
|
||||
Follow the examples in [Verify your Qubes ISO][signature file] carefully.
|
||||
- The ISO or [signature file] is bad (e.g., incomplete or corrupt download).
|
||||
Try downloading the signature file again from a different source, then try verifying again.
|
||||
If you still get the same result, try downloading the ISO again from a different source, then try verifying again.
|
||||
|
||||
|
||||
### I'm getting "bash: gpg: command not found"
|
||||
|
||||
You don't have `gpg` installed.
|
||||
Install it, or use `gpg2` instead.
|
||||
|
||||
|
||||
### Why am I getting "can't open signed data `Qubes-RX-x86_64.iso' / can't hash datafile: file open error"?
|
||||
|
||||
The correct ISO is not in your working directory.
|
||||
|
||||
|
||||
### Why am I getting "can't open `Qubes-RX-x86_64.iso.asc' / verify signatures failed: file open error"?
|
||||
|
||||
The correct [signature file] is not in your working directory.
|
||||
|
||||
|
||||
### Why am I getting "no valid OpenPGP data found"?
|
||||
|
||||
Either you don't have the correct [signature file], or you inverted the arguments to `gpg`.
|
||||
([The signature file goes first.][signature file])
|
||||
|
||||
|
||||
### Why am I getting "WARNING: This key is not certified with a trusted signature! There is no indication that the signature belongs to the owner."?
|
||||
|
||||
Either you don't have the [Qubes Master Signing Key][QMSK], or you didn't [set its trust level correctly][QMSK].
|
||||
|
||||
|
||||
### Why am I getting "X signature not checked due to a missing key"?
|
||||
|
||||
You don't have the keys that created those signatures in your keyring.
|
||||
For present purposes, you don't need them as long as you have the [Qubes Master Signing Key][QMSK] and the [Release Signing Key][RSK] for your Qubes version.
|
||||
|
||||
|
||||
### Why am I seeing additional signatures on a key with "[User ID not found]" or from a revoked key?
|
||||
|
||||
This is just a basic part of how OpenPGP works.
|
||||
Anyone can sign anyone else's public key and upload the signed public key to keyservers.
|
||||
Everyone is also free to revoke their own keys at any time (assuming they possess or can create a revocation certificate).
|
||||
This has no impact on verifying Qubes ISOs, code, or keys.
|
||||
|
||||
|
||||
### Why am I getting "verify signatures failed: unexpected data"?
|
||||
|
||||
You're not verifying against the correct [signature file].
|
||||
|
||||
|
||||
### Why am I getting "not a detached signature"?
|
||||
|
||||
You're not verifying against the correct [signature file].
|
||||
|
||||
|
||||
### Why am I getting "CRC error; [...] no signature found [...]"?
|
||||
|
||||
You're not verifying against the correct [signature file], or the signature file has been modified.
|
||||
Try downloading it again or from a different source.
|
||||
|
||||
|
||||
### Do I have to verify the ISO against both the [signature file] and the [digest file]?
|
||||
|
||||
No, either method is sufficient by itself.
|
||||
|
||||
|
||||
### Why am I getting "no properly formatted X checksum lines found"?
|
||||
|
||||
You're not checking the correct [digest file].
|
||||
|
||||
|
||||
### Why am I getting "WARNING: X lines are improperly formatted"?
|
||||
|
||||
Read [How to Verify Qubes ISO Digests][digest file] again.
|
||||
|
||||
|
||||
### Why am I getting "WARNING: 1 listed file could not be read"?
|
||||
|
||||
The correct ISO is not in your working directory.
|
||||
|
||||
|
||||
### I have another problem that isn't mentioned here.
|
||||
|
||||
Carefully read this page again to be certain that you didn't skip any steps.
|
||||
In particular, make sure you have the [Qubes Master Signing Key][QMSK], the [Release Signing Key][RSK], *and* the [signature file] and/or [digest file] all for the *correct* Qubes OS version.
|
||||
If your question is about GPG, please see the [GPG documentation].
|
||||
If you still have a question, please address it to the [qubes-users mailing list].
|
||||
|
||||
|
||||
[website-trust]: /faq/#should-i-trust-this-website
|
||||
[Distrusting the Infrastructure]: /faq/#what-does-it-mean-to-distrust-the-infrastructure
|
||||
[Qubes Master Signing Key]: https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
|
||||
[keyserver]: https://en.wikipedia.org/wiki/Key_server_%28cryptographic%29#Keyserver_examples
|
||||
[Downloads]: /downloads/
|
||||
[Qubes Security Pack]: /security/pack/
|
||||
[Qubes OS Keyserver]: https://keys.qubes-os.org/keys/
|
||||
[devel-master-key-msg]: https://groups.google.com/d/msg/qubes-devel/RqR9WPxICwg/kaQwknZPDHkJ
|
||||
[user-master-key-msg]: https://groups.google.com/d/msg/qubes-users/CLnB5uFu_YQ/ZjObBpz0S9UJ
|
||||
[mailing lists]: /support/
|
||||
[Release 3 Signing Key]: https://keys.qubes-os.org/keys/qubes-release-3-signing-key.asc
|
||||
[Qubes OS Keyserver]: https://keys.qubes-os.org/keys/
|
||||
[Troubleshooting FAQ]: #troubleshooting-faq
|
||||
[QMSK]: #1-get-the-qubes-master-signing-key-and-verify-its-authenticity
|
||||
[RSK]: #2-get-the-release-signing-key
|
||||
[signature file]: #3-verify-your-qubes-iso
|
||||
[digest file]: #how-to-verify-qubes-iso-digests
|
||||
[GPG documentation]: https://www.gnupg.org/documentation/
|
||||
[qubes-users mailing list]: /support/#qubes-users
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user