HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_214
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 214 [root@deep gnupg-1.0.1]# make [root@deep gnupg-1.0.1]# make check [root@deep gnupg-1.0.1]# make install [root@deep gnupg-1.0.1]# strip /usr/bin/gpg The “make” command compile all source files into executable binaries, then the “make check will run any self-tests that come with the package“ and finally the “make install” command install the binaries and any supporting files into the appropriate locations. The “strip” command will reduce the size of the “gpg” binary for better performance. Cleanup after work [root@deep /]# cd /var/tmp [root@deep tmp]# rm -rf gnupg-version/ gnupg-version.tar.gz The “rm” command will remove all the source files we have used to compile and install GnuPG. It will also remove the GnuPG compressed archive from the “/var/tmp” directory. Commands The commands listed bellows are some that we use often in our regular use but much more exist and you must check the man page for more details and information. Creating a key First of all, we must create a new key-pair (public and private) if this is a first use of the GunPG software to be able to use his encryption feature. Step 1 · To create a new key-pair, use the following command: [root@deep /]# gpg --gen-key gpg (GnuPG) 1.0.1; Copyright (C) 1999 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. gpg: /root/.gnupg: directory created gpg: /root/.gnupg/options: new options file created gpg: you have to start GnuPG again, so it can read the new options file This asks some questions and then starts key generation. Step 2 · We start GnuPG again with the following command: [root@deep /]# gpg --gen-key gpg (GnuPG) 1.0.1; Copyright (C) 1999 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. gpg: /root/.gnupg/secring.gpg: keyring created gpg: /root/.gnupg/pubring.gpg: keyring created Please select what kind of key you want:    (1) DSA and ElGamal (default)    (2) DSA (sign only)    (4) ElGamal (sign and encrypt) Your selection? 1 DSA keypair will have 1024 bits. About to generate a new ELG-E keypair.               minimum keysize is  768 bits