O'Reilly logo

CompTIA® Linux+ / LPIC-1 Cert Guide: (Exams LX0-103 & LX0-104/101-400 & 102-400) by Sean Walberg, Ross Brunson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GnuPG Keys

Sometimes you want to encrypt data. In these cases an option that exists in Linux is GnuPG (Gnu Privacy Guard). This software creates private and public keys that can be used to encrypt data.

Image

To create these keys, execute the gpg –gen-key command.

This tool first prompts you for several bits of information, including which sort of key you want (normally you should choose #1, RSA, and RSA), the size of the RSA keys, and how long the keys will be valid, as shown in Example 20-3.

Example 20-3 Output of the gpg --gen-key Command

gpg (GnuPG) 1.4.18; Copyright (C) 2014 Free Software Foundation, Inc.This is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required