-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requirement for passphrase-less submission keys #284
Open
lilyannehall
wants to merge
5
commits into
freedomofpress:main
Choose a base branch
from
lilyannehall:docs/issue#95
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
42d111b
add a note and reference doc on the lack of support for passphrase pr…
lilyannehall 1d0fcaa
change language in note about passphrase protected submission keys
lilyannehall f12c57c
replace gpg remove passphrase instructions with the instructions prov…
lilyannehall 260e30b
add path to opening dom0 xfce term
lilyannehall 3c14dbf
rm ) that was hiding
lilyannehall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Removing the Passphrase from a GPG Key | ||
====================================== | ||
|
||
First, in a ``dom0`` terminal on your Qubes workstation (Qubes Menu > ⚙️ > Other > Xfce Terminal) and assuming the key is in a file ``sd-journalist.sec`` in your home directory, import the passphrase-protected secret key: | ||
|
||
.. code-block:: sh | ||
|
||
export GPGTMP=`mktemp -d` # create a tempdir | ||
gpg --homedir=${GPGTMP} --pinentry=loopback --import sd-journalist.sec | ||
|
||
Next, check the key id: | ||
|
||
.. code-block:: sh | ||
|
||
gpg --homedir=${GPGTMP} --list-secret-keys --keyid-format=long | ||
|
||
The output should list the key with a line similar to: | ||
|
||
.. code-block:: sh | ||
|
||
sec rsa4096/XXXXXXXXXX <creation date> | ||
|
||
The ``XXXXXXXXXX`` value is the key id, which you can use to open the key in edit mode with the following command: | ||
|
||
.. code-block:: sh | ||
|
||
gpg --homedir=${GPGTMP} --pinentry=loopback --edit-key XXXXXXXXXX | ||
|
||
In the GPG interactive prompt, enter the command ``passwd`` to change the passphrase. You will first be prompted for the current passphrase, so enter that. Then, on the next prompt, just hit enter for a new blank passphrase, and enter again when prompted to repeat it. Then exit with the command ``quit``. | ||
|
||
You should now have a passphrase-less version of the key in the $GPGTMP keyring. To export it, use the following command with the same key id as above: | ||
|
||
.. code-block:: sh | ||
|
||
gpg --homedir=${GPGTMP} --export-secret-key --armor XXXXXXXXXX > /tmp/nopassphrase.sec | ||
|
||
Verify that the new keyfile ``/tmp/nopassphrase.sec`` starts with the ``-----BEGIN PGP PRIVATE KEY BLOCK-----`` line. If it does, the export was successful. You can now copy it into place and check the config again with the commands: | ||
|
||
.. code-block:: sh | ||
|
||
sudo cp /tmp/nopassphrase.sec /usr/share/securedrop-workstation-dom0-config/sd-journalist.sec | ||
sdw-admin --validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These instructions need better context - they should be performed on dom0 and in a temporary GPG homedir that gets nuked after they're complete. I had some notes in a recent related support issue if that helps.