gpgsm: Fix bug so that a cert can be signed by a different algo.
* sm/certreqgen.c (create_request): Take the algo from the sigkey instead of the to-be-signed public key.
The bug was that a certificate could only be signed by a signing key
using the same algo.
- Reported-by: Youfu Zhang <zhangyoufu@gmail.com>