Self Signed Certificate Identification

Hello @Everyone,

Is there any way out there to identified self signed certificates installed on system.
I need to create a relevance clause that checks the certificate store on the local machine for any certificates that have the same issuer and subject.