Skip to content
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

gpg creation: added suggestion on how to set-up rngd #6483

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/spack/docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,22 @@ they may use packages you have signed using the ``--export <keyfile>`` flag.
Secret keys may also be later exported using the
``spack gpg export <location> [<key>...]`` command.

.. note::

Key creation speed
The creation of a new GPG key requires generating a lot of random numbers.
Depending on the entropy produced on your system, the entire process may
take a long time (even a few minutes). To speed it up you may install
tools like ``rngd``, which is usually available as a package in the host OS.
On e.g. an Ubuntu machine you need to give the following commands:

.. code-block:: console

$ sudo apt-get install rng-tools
$ sudo rngd -r /dev/urandom

before generating the keys.

^^^^^^^^^^^^
Listing keys
^^^^^^^^^^^^
Expand Down