From owner-freebsd-questions@freebsd.org Wed Oct 7 00:07:43 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A621043E80E for ; Wed, 7 Oct 2020 00:07:43 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from cyrus.watson.org (cyrus.watson.org [204.107.128.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4C5ZR21Vfkz46R3 for ; Wed, 7 Oct 2020 00:07:41 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 711A4D78A for ; Wed, 7 Oct 2020 00:07:41 +0000 (UTC) Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 09707fME005742 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 7 Oct 2020 00:07:41 GMT (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 09707f3T005739 for ; Wed, 7 Oct 2020 00:07:41 GMT (envelope-from doug@fledge.watson.org) Date: Wed, 7 Oct 2020 00:07:41 +0000 (UTC) From: doug Reply-To: doug@safeport.com To: freebsd-questions@FreeBSD.org Subject: Can't add a passphrase to gpg-agent Message-ID: User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4C5ZR21Vfkz46R3 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of doug@fledge.watson.org has no SPF policy when checking 204.107.128.30) smtp.mailfrom=doug@fledge.watson.org X-Spamd-Result: default: False [2.80 / 15.00]; HAS_REPLYTO(0.00)[doug@safeport.com]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.26)[0.255]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.70)[0.701]; NEURAL_SPAM_LONG(0.84)[0.845]; DMARC_NA(0.00)[watson.org]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11288, ipnet:204.107.128.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2020 00:07:43 -0000 I have: claws-mail-pgp-3.17.5 geany-plugin-pg-1.36 gnupg-2.2.20 gpgme-1.13.1 and start gpg-agend with gpg-connect-agent /bye. The claws-mail and geany will not prompt for the passphrase since I added some keys to the key-ring. claws-mail worked with one key that matched the email profile. I've had no luck with any options in gpg.conf, The gpg command flags anything as an error. The following: default-cache-ttl 46000 allow-preset-passphrase gets: gpg -d dtd.txt gpg: /home/doug/.gnupg/gpg.conf:1: invalid option gpg: /home/doug/.gnupg/gpg.conf:2: invalid option What does work is starting the agent with `gpg-connect-agent /bye` and then `gpg -d dtd.txt` which prompts for the passphrase after which claws-mail and geany work fine. The last thing I tried: /usr/local/libexec/gpg-preset-passphrase --preset -c gpg-preset-passphrase: caching passphrase failed: Not supported