GNU Privacy Guard。注意:维护者不跟踪此镜像。请不要在此提交拉取请求,也不要对任何提交进行评论,请按照通常的方式提交到 bug tra
GNU Privacy Guard。注意:维护者不跟踪此镜像。请不要在此提交拉取请求,也不要对任何提交进行评论,请按照通常的方式提交到 bug tra
The GNU Privacy Guard ======================= Version 2.5
Copyright 1997-2019 Werner Koch
Copyright 1998-2021 Free Software Foundation, Inc.
Copyright 2003-2026 g10 Code GmbHINTRODUCTION
GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). GnuPG enables encryption and signing of data and communication, and features a versatile key management system as well as access modules for public key directories.
GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available that make use of GnuPG. Starting with version 2 GnuPG provides support for S/MIME and Secure Shell in addition to OpenPGP.
GnuPG is Free Software (meaning that it respects your freedom). It can be freely used, modified and distributed under the terms of the GNU General Public License.
Note that this is considered the stable version of GnuPG.
BUILD INSTRUCTIONS
GnuPG 2.6 depends on the following GnuPG related packages:
npth (https://gnupg.org/ftp/gcrypt/npth/) libgpg-error (https://gnupg.org/ftp/gcrypt/libgpg-error/) libgcrypt (https://gnupg.org/ftp/gcrypt/libgcrypt/) libksba (https://gnupg.org/ftp/gcrypt/libksba/) libassuan (https://gnupg.org/ftp/gcrypt/libassuan/)
You should get the latest versions of course, the GnuPG configure script complains if a version is not sufficient.
Several other standard libraries are also required. The configure script prints diagnostic messages if one of these libraries is not available and a feature will not be available.
You also need the Pinentry package for most functions of GnuPG; however it is not a build requirement. Pinentry is available at https://gnupg.org/ftp/gcrypt/pinentry/ .
After building and installing the above packages in the order as given above, you may continue with GnuPG installation (you may also just try to build GnuPG to see whether your already installed versions are sufficient).
As with all packages, you just have to do
mkdir build cd build ../configure make make check make install
The "make check" is optional but highly recommended. To run even more tests you may add "--enable-all-tests" to the configure run. Before running the "make install" you might need to become root.
If everything succeeds, you have a working GnuPG with support for OpenPGP, S/MIME, ssh-agent, and smartcards.
In case of problem please ask on the [email protected] mailing list for advise.
Instruction on how to build for Windows can be found in the file doc/HACKING in the section "How to build an installer for Windows". This requires some experience as developer.
You may run
gpgconf -L
to view the directories used by GnuPG.
** Quick build method on Unix
To quickly build all required software without installing it, the Speedo target may be used. But first you need to make sure that the toolchain is installed. On a Debian based system it should be sufficient to run as root:
apt-get install build-essential libusb-1.0-0-dev libsqlite3-dev \
libldap-dev libreadline-dev patchelf(libldap-dev and libreadline-dev are not strictly necessary but are highly suggested.)
Then as regular user run
make -f build-aux/speedo.mk nativeThis target downloads all required libraries and does a native build of GnuPG to PLAY/inst/. After the build the entire software including all libraries can be installed into an arbitrary location using for example:
make -f build-aux/speedo.mk install SYSROOT=/usr/local/gnupg26and run the binaries like
/usr/local/gnupg26/bin/gpgwhich will also start any daemon from the same directory. Make sure to stop already running daemons or use a different GNUPGHOME.
If you want to use the gnupg-w32-n.m.n_somedate.tar.xz tarball you only need to change the first make invocation to
make -f build-aux/speedo.mk this-nativeThe advantage of this alternative tarball is that all libraries are included and thus the Makefile does not need to download new tarballs. Note that in any case all downloaded files come with signatures which are verified by the Makefile commands. The patchelf command is required to change the search path for the shared libraries in the binaries to relative directories.
** Specific build problems on some machines:
*** Apple OSX 10.x using XCode
On some versions the correct location of a header file can't be detected by configure. To fix that you should run configure like this
./configure gl_cv_absolute_stdint_h=/usr/include/stdint.hAdd other options as needed.
*** Cygwin
Although Cygwin (Posix emulation on top of Windows) is not officially supported, GnuPG can be build for that platform. It might be required to invoke configure like this:
./configure ac_cv_type_SOCKET=no*** Systems without a full C99 compiler
If you run into problems with your compiler complaining about dns.c you may use
./configure --disable-libdnsAdd other options as needed.
** Securing the global config files on Windows
The Windows version of GnuPG expects optional global config files in the directory "%ALLUSERSPROFILE%\GNU\etc\gnupg". However, current Windows versions allow by default all users to write to this directory. Thus on machine shared with several users it is highly suggested to secure the entire "etc" directory tree by disallowing regular users to create files or diretories. Installers for GnuPG on Windows might have done that already but it is suggested to check that this has been done. The command "gpgconf -X" will check for proper permissions and emit a warning if this has not been done. Fixing the permissions is easy from an Administrators terminal:
icacls "%ALLUSERSPROFILE%\GNU\etc" /setintegritylevel h** Key database daemon
Since version 2.3.0 it is possible to store the keys in an SQLite database instead of the keyring.kbx file. This is in particular useful for large keyrings or if many instances of gpg and gpgsm may run concurrently. This is implemented using another daemon process, the "keyboxd". To enable the use of the keyboxd put the option "use-keyboxd" into the configuration file ~/.gnupg/common.conf or the global /etc/gnupg/common.conf. See also doc/examples/common.conf. Only public keys and X.509 certificates are managed by the keyboxd; private keys are still stored as separate files.
Since version 2.4.1 the keyboxd will be used by default for a fresh install; i.e. if a ~/.gnupg directory did not yet exist.
Note that there is no automatic migration; if the use-keyboxd option is enabled keys are not taken from pubring.kbx. To migrate existing keys to the keyboxd do this:
Please direct questions about GnuPG to the users mailing list or one of the PGP newsgroups; please do not direct questions to one of the authors directly as we are busy working on improvements and bug fixes. The mailing lists are watched by the authors and we try to answer questions as time allows us.
Since 2001 maintenance and development of GnuPG is done by g10 Code GmbH, a German company majoritarian owned and headed by GnuPG's principal author Werner Koch. Revenues from support contracts allows them to work full-time on GnuPG and related software like Libgcrypt, GPGME, Kleopatra, Okular, and Gpg4win.
暂无开放 Issues,或尚未同步最近议题。