code: def gen_keys(keydir=None, keyname=None, keysize=None, user=None):
      '''
      Generate minion RSA public keypair
      '''
      skey = get_key(__opts__)
      return skey.gen_keys(keydir, keyname, keysize, userf gen_keys(keydir=None, keyname=None, keysize=None, user=None):
      '''
      Generate minion RSA public keypair
      '''
      skey = get_key(__opts__)
      return skey.gen_keys(keydir, keyname, keysize, user)
docs: Generate minion RSA public keypair