def get_stored_cert_serials(store):
 cmd = 'certutil.exe -store {0}'.format(store)
 out = __salt__['cmd.run'](cmd)
 matches = re.findall('Serial Number: (.*)\\r', out)
 return matches

def get_stored_cert_serials ( store ) : cmd = 'certutil.exe -store {0}' . format ( store ) out = __salt__ [ 'cmd.run' ] ( cmd ) matches = re . findall ( 'Serial Number: (.*)\\r' , out ) return matches
get all of the certificate serials in the specified store store the store to get all the certificate serials from cli example: .