* certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2