Kevin J. McCarthy wrote: > For backwards compatibility, only set smime_ca_location if > ~/.smime/ca-certificates.crt or ~/.smime/ca-bundle.crt exists. > Otherwise, use the OpenSSL compiled defaults. > > The change to $smime_ca_location in contrib/smime.rc is based on the > Debian patch authored by Antonio Radici. Thanks to Todd Zullinger for > pointing the patch out to me. > > Make the %C parameter conditional in $smime_verify_command and > $smime_verify_opaque_command, so an unset value uses the OpenSSL > compiled defaults. > > Update the smime-notes.txt to describe the new behavior of > $smime_ca_location, and advise the user to set it if their > distribution openssl is not compiled with a default set of trusted > roots.
Excellent! Thanks for testing that to confirm things work with distribution default. I looked a little at how to setup S/MIME as I'd done it long ago, but I didn't have any S/MIME signed messages at hand to test with. > # Path to a file or directory with trusted certificates > -set smime_ca_location="~/.smime/ca-bundle.crt" > +set smime_ca_location=\ > + "`for f in \ > + $HOME/.smime/ca-certificates.crt $HOME/.smime/ca-bundle.crt \ > + ; do if [ -e $f ] ; then echo $f ; exit ; fi ; done`" Would `[ -r $f ]` be better here? It _shouldn't_ come up too often, unless someone copies a CA bundle with the wrong permissions. Does Mutt report a failure to read $smime_ca_location to the user? Ideally, the `openssl smime` call reports the error and that will make it back to Mutt and the user. Even if no error does make it to the user, it still may be better to leave the `-e` test and not skip the path. That would let the user work out why the value is set but not used as opposed to why it is unset when they think it should be set. This is much more of a question than a suggestion. And a bit of an edge-case UX one at that. So maybe the best thing is to call it good and wait another 5 or 10 years to see if anyone using S/MIME has a better suggestion. It all looks good to me, for what that's worth. Thanks, -- Todd
signature.asc
Description: PGP signature
