Add support for signer_digest option in TS. Based on PR#2145 Reviewed-by: Matt Caswell <matt@openssl.org>