Allow selecting the digest algorithm when creating a CA or Cert. Implements #2765
Default to using sha256 digest for GUI cert.