bug 807: copy md setting to new certificate when renewing

When the user renews a certificate, copy the digest algorithm
to the new certificate.