Debian GNU/Linux Testing, i386, gnupg 1.9.20
Gpgsm does not use values from config file when invoked in server mode (gpgsm --server). This imply e.g. that include_certs is left at the default value when sending mail from kmail (tested on version 1.8.3). Hence it is not possible to include the whole chain of certificates, only the sender certificate is attached.
How To Repeat
Run the following:
gpgsm --server 47<message 48>signature <<EOF
Regardless of setup in gpgsm.conf, in log file is written that
DBG: adding certificates at level 1
and no intermediate certificates are included in the created signature.
I am sending a small patch that fixes this problem. However, I am not sure whether it does not cause some other problems.