docs: def create(gandi, csr, private_key, common_name, country, state, city,
             organisation, branch, duration, package, type, max_altname,
             warranty, altnames, dcv_method):
      """Create a new certificate."""
      if not (csr or common_name):
          gandi.echo('You need a CSR or a CN to create a certificate.')
          return
  
      if package and (type or max_altname or warranty):
          gandi.echo('Please do not use --package at the same time you use '
                     '--type, --max-altname or --warranty.')
          return
  
      if type and warranty and type != 'pro':
          gandi.echo('The warranty can only be specified for pro certificates.')
          return
  
      csr = gandi.certificate.process_csr(common_name, csr, private_key, country,
                                          state, city, organisation, branch)
      if not csr:
          return
  
      if not common_name:
          common_name = gandi.certificate.get_common_name(csr)
          if not common_name:
              gandi.echo('Unable to parse provided csr: %s' % csr)
              return
  
      if '*' in common_name and altnames and len(altnames) > 1:
          gandi.echo("You can't have a wildcard with multidomain certificate.")
          return
  
      if package:
          gandi.echo('/!\ Using --package is deprecated, please replace it by '
                     '--type (in std, pro or bus) and --max-altname to set '
                     'the max number of altnames.')
      elif type or max_altname or warranty:
          package = gandi.certificate.get_package(common_name,
                                                  type,
                                                  max_altname,
                                                  altnames,
                                                  warranty)
          if not package:
              gandi.echo("Can't find any plan with your params.")
              gandi.echo('Please call : "gandi certificate plans".')
              return
  
      result = gandi.certificate.create(csr, duration, package, altnames,
                                        dcv_method)
  
      gandi.echo('The certificate create operation is %s' % result['id'])
      gandi.echo('You can follow it with:')
      gandi.echo('$ gandi certificate follow %s' % result['id'])
      if common_name:
          gandi.echo('When the operation is DONE, you can retrieve the .crt'
                     ' with:')
          gandi.echo('$ gandi certificate export "%s"' % common_name)
  
      return result