David Bremner writes: > After digging through mml-secure for a while, I realized that the > problem is not actually in emacs, but in our test harness for gpgsm. I > added the gpgsm -K to the script, and you can see that the > test_suite@notmuchmail.org key is not being added. > > I think that means there is some kind of intermittent failure with the > following pipeline > > openssl pkcs12 -export -passout pass: -inkey "$NOTMUCH_SRCDIR/test/smime/key+cert.pem" \ > < "$NOTMUCH_SRCDIR/test/smime/test.crt" | \ > gpgsm --batch --no-tty --no-common-certs-import --pinentry-mode=loopback --passphrase-fd 3 \ > --disable-dirmngr --import >"$GNUPGHOME"/import.log 2>&1 3<<<'' > I wrote the output from openssl to a temporary file, and it appears that sometimes (like the case I attached), this cannot be imported by "gpgsm --import". It might be related to the existing bug report [1] from dkg. One thing I noticed is that the debugging output has broken looking offset in it. gpgsm: 872 bytes of RC2 encrypted text gpgsm: processing certBag gpgsm: 1224 bytes of 3DES encrypted text gpgsm: decryption failed; trying charset 'ISO-8859-1' gpgsm: decryption failed; trying charset 'ISO-8859-15' gpgsm: decryption failed; trying charset 'ISO-8859-2' gpgsm: decryption failed; trying charset 'ISO-8859-3' gpgsm: decryption failed; trying charset 'ISO-8859-4' gpgsm: decryption failed; trying charset 'ISO-8859-5' gpgsm: decryption failed; trying charset 'ISO-8859-6' gpgsm: decryption failed; trying charset 'ISO-8859-7' gpgsm: decryption failed; trying charset 'ISO-8859-8' gpgsm: decryption failed; trying charset 'ISO-8859-9' gpgsm: decryption failed; trying charset 'KOI8-R' gpgsm: decryption failed; trying charset 'IBM437' gpgsm: decryption failed; trying charset 'IBM850' gpgsm: decryption failed; trying charset 'EUC-JP' gpgsm: decryption failed; trying charset 'BIG5' gpgsm: data error at "decrypted-text", offset 2646783990 gpgsm: error at "bag-sequence", offset 996 gpgsm: error parsing or decrypting the PKCS#12 file gpgsm: total number processed: 1 gpgsm: imported: 1 [1]: https://dev.gnupg.org/T4751