[neomutt-users] How to use s/mime in neomutt with gpgme/gpgsm?

Grigory S. Gusev ggouss at snafu.bar
Sun Jun 13 09:40:55 CEST 2021


Hello, everyone!

I need help in configuring neomutt with ability to use s/mime certificate to sign and encrypt messages.
I've tried two different configurations and both of them did not work.

1. with gpgme

#
# https://wiki.netbsd.org/users/wiz/mutt-smime/
#

set crypt_use_gpgme = yes
set pgp_self_encrypt = yes
set pgp_use_gpg_agent = yes
set pgp_default_key = 1CEABB792EA453C0D91BB28C206E4BE9EE94EB27
set smime_self_encrypt = yes
set smime_ca_location = '/usr/local/share/certs/ca-root-nss.crt'

this config gives me 'secret key mailbox at name not found: End of file'

2. with configuring s/mime certs

# crypt_use_gpgme = yes
set smime_certificates = '~/.secrets/smime/certs'
set smime_keys = '~/.secrets/smime/keys'
set smime_default_key = 880d1fb6.0

this gives me error 'secret key '880d1fb6.0' not found: End of file

how should I configure Neomutt to be able to use s/mime certificate?

My environment is: 

neomutt -v

> 
> NeoMutt 20210205
> Copyright (C) 1996-2020 Michael R. Elkins and others.
> NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
> NeoMutt is free software, and you are welcome to redistribute it
> under certain conditions; type 'neomutt -vv' for details.
> 
> System: FreeBSD 13.0-RELEASE-p1 (amd64)
> ncurses: ncurses 6.2.20200215 (compiled with 6.2.20200215)
> libiconv: 1.16
> GPGME: 1.15.1
> OpenSSL: OpenSSL 1.1.1k-freebsd  25 Mar 2021
> libnotmuch: 5.3.0
> storage: tokyocabinet, lmdb
> 
> Configure options: --with-ssl=/usr --locales-fix --fmemopen --mandir=/usr/local/man --enable-gpgme --gss --disable-idn --lmdb --enable-nls --enable-notmuch --sasl --with-ui=ncurses --tokyocabinet
> 
> Compilation CFLAGS: -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/local/include -DNCURSES_WIDECHAR -I/usr/include -I/usr/include 
> 
> Default options:
>   +attach_headers_color +compose_to_sender +compress +cond_date +debug 
>   +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color 
>   +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop 
>   +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar 
>   +skip_quoted +smtp +status_color +timeout +tls_sni +trash 
> 
> Compile options:
>   -autocrypt +bkgdset +color +curs_set +fcntl -flock +fmemopen +futimens 
>   +getaddrinfo -gnutls +gpgme +gss +hcache -homespool -idn -inotify 
>   +locales_hack -lua +meta -mixmaster +nls +notmuch +openssl +pgp +regex +sasl 
>   +smime -sqlite +start_color +sun_attachment +typeahead 
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/local/share/neomutt"
> SENDMAIL="/usr/sbin/sendmail"
> SYSCONFDIR="/usr/local/etc"
> 
> To learn more about NeoMutt, visit: https://neomutt.org
> If you find a bug in NeoMutt, please raise an issue at:
>     https://github.com/neomutt/neomutt/issues
> or send an email to: <neomutt-devel at neomutt.org>

uname -sr

> FreeBSD 13.0-RELEASE-p1

--
Gregg


More information about the neomutt-users mailing list