Detailed configuration of GPG-agent

Source: Internet
Author: User
Tags gnupg gpg


The GPG (GnuPG) tool is widely used. It is described in detail in the previous article: getting started! For example, in recent work, to create a Debian software warehouse, you need to use GPG to sign the Deb package. To add thousands of packages, you need to enter thousands of passwords, which is obviously not feasible, GPG-agent is required now!

The number of GPG-Agent configurations on the Internet is very small. Here is a more reliable introduction for reference:

Https://wiki.archlinux.org/index.php/GnuPG#gpg-agent

Main Configuration:

1. Start the script (. profile or ~ /. Bash_profile) Configuration:

 
Eval $ (GPG-agent -- Daemon )&
2 .~ /. GnuPG/gpg-agent.conf Configuration:
 
Default-Cache-TTL 3600 # password validity period pinentry-Program/usr/bin/pinentry-gtk-2 # Password Input window Program



In ubuntu, gnome-keyring-common is used by default to take over the password (including SSH and GPG by default. You can view related files in the/etc/xdg/autostart directory ), if you use the GPG-agent to take over the GPG passwordGnome-keyring-commonThe GPG taken over in this article is blocked:

Https://wiki.archlinux.org/index.php/GnuPG#gpg-agent

In fact, it is very simple, just move the/etc/xdg/autostart/gnome-keyring-gpg.desktop file or link to/dev/null.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.