(osx_fingerprint, keychain=None, gui=False,
               password=None)
Deletes a certificate by SHA1 hash.

  Args:
    osx_fingerprint: str, SHA-1 hash (uppercase, no colons)
    keychain: str, keychain to delete from; if unset the default keychain is
              used (normally the login keychain)
    gui: True if running in a gui context
    password: The user's password if already known.

  Raises:
    CertError: unable to delete certificate
Deletes a certificate by SHA1 hash.
Deletes a certificate by SHA1 hash .
def DeleteCert(osx_fingerprint, keychain=None, gui=False,
               password=None):
  """Deletes a certificate by SHA1 hash.

  Args:
    osx_fingerprint: str, SHA-1 hash (uppercase, no colons)
    keychain: str, keychain to delete from; if unset the default keychain is
              used (normally the login keychain)
    gui: True if running in a gui context
    password: The user's password if already known.

  Raises:
    CertError: unable to delete certificate
  """
  sudo, sudo_pass = _GetSudoContext(keychain,
                                    gui=gui,
                                    password=password)
  cmd = [CMD_SECURITY, 'delete-certificate', '-Z', osx_fingerprint]
  if keychain:
    cmd.append(keychain)
  (unused_stdout, stderr, returncode) = (
      gmacpyutil.RunProcess(cmd, sudo=sudo, sudo_password=sudo_pass))

  if returncode:
    raise CertError('Unable to delete certificate: %s' % stderr)
def DeleteCert ( osx_fingerprint , keychain = None , gui = False , password = None ) : sudo , sudo_pass = _GetSudoContext ( keychain , gui = gui , password = password ) cmd = [ CMD_SECURITY , 'delete-certificate' , '-Z' , osx_fingerprint ] if keychain : cmd . append ( keychain ) ( unused_stdout , stderr , returncode ) = ( gmacpyutil . RunProcess ( cmd , sudo = sudo , sudo_password = sudo_pass ) ) if returncode : raise CertError ( 'Unable to delete certificate: %s' % stderr )