I am trying /INTEGRITYCHECK linker option for enforcing digital signature check. For testing this property, I created a test certificate using Makecert, added it to trusted publisher. Then signed the exe (/INTEGRITYCHECK enabled) using this certificate. But when I try to run it, it is getting blocked by Windows Defender.
How can I test this property in my development environment? I don't have a commercial certificate now. Is it possible to use a test certificate for testing purpose? Or what kind of a certificate is needed for testing purpose?