def del_store(source, store, saltenv='base'):
 cert_file = __salt__['cp.cache_file'](source, saltenv)
 serial = get_cert_serial(cert_file)
 cmd = 'certutil.exe -delstore {0} {1}'.format(store, serial)
 return __salt__['cmd.run'](cmd)

def del_store ( source , store , saltenv = 'base' ) : cert_file = __salt__ [ 'cp.cache_file' ] ( source , saltenv ) serial = get_cert_serial ( cert_file ) cmd = 'certutil.exe -delstore {0} {1}' . format ( store , serial ) return __salt__ [ 'cmd.run' ] ( cmd )
delete the given cert into the given certificate store source the source certificate file this can be in the form salt://path/to/file store the certificate store to delete the certificate from saltenv the salt environment to use this is ignored if the path is local cli example: .