Skip to Content
Mastering Linux Security and Hardening - Second Edition
book

Mastering Linux Security and Hardening - Second Edition

by Donald A. Tevault
February 2020
Intermediate to advanced
666 pages
15h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening - Second Edition

Hands-on lab – creating your GPG keys

The first thing you need to know is how to create your GPG keys. Let's do that now:

  1. Create your pair of GPG keys:
gpg --gen-key
Note that, since you're setting this up for yourself, you don't need sudo privileges.

The output of this command is too long to show all at once, so I'll show the relevant sections of it and break down what they mean.

The first thing that this command does is to create a populated .gnupg directory in your home directory:

gpg: directory `/home/donnie/.gnupg' createdgpg: new configuration file `/home/donnie/.gnupg/gpg.conf' createdgpg: WARNING: options in `/home/donnie/.gnupg/gpg.conf' are not yet active during this rungpg: keyring `/home/donnie/.gnupg/secring.gpg' createdgpg: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Security and Hardening - Third Edition

Mastering Linux Security and Hardening - Third Edition

Donald A. Tevault
UNIX and Linux System Administration Handbook, 5th Edition

UNIX and Linux System Administration Handbook, 5th Edition

Trent R. Hein, Evi Nemeth, Garth Snyder, Ben Whaley, Dan Mackin

Publisher Resources

ISBN: 9781838981778Supplemental Content