I've updated the net-misc/stunnel-4.05 ebuild to add two patches and enable DSA key support.
The purpose patch allows one to specify which "purpose" the client key is checked for. This is useful for log hosts that have "servers" (e.g. the logging output of an HTTP daemon) as clients (to store the logs).
The keytype patch adds support for non-RSA keys.
The configure option "--enable-dh" is necessary for DSA keys.
Created attachment 39662 [details, diff]
Patch against stunnel-4.05.ebuild
Created attachment 39663 [details, diff]
keytype patch for stunnel-4.04 (applies cleanly to 4.05)
Created attachment 39664 [details, diff]
purpose patch for stunnel-4.05
Patches doesn't apply to 4.07, please submit new bugreport with new patches and I'll add them to 4.07. Thanks!