gpg: Fix honoring --cert-digest-algo when recreating a cert