code: def gen_signature(self, privkey, pubkey, sig_path):
          '''
          Generate master public-key-signature
          '''
          return salt.crypt.gen_signature(privkey,
                                          pubkey,
                                          sig_path,
                                          self.passphrasef gen_signature(self, privkey, pubkey, sig_path):
          '''
          Generate master public-key-signature
          '''
          return salt.crypt.gen_signature(privkey,
                                          pubkey,
                                          sig_path,
                                          self.passphrase)
docs: Generate master public-key-signature