Windows Platform (8/10/11)
I always sign my compiled exe files with my own official digital certificate.
Im looking for an example to check that the digital certificate of my EXE file is still present & valid at the program start.
Some pseudo code what i want to archieve at program start:
- get certificate data of the started exe process
- if certificate not exist : exit prg
- if certificate not valid : exit prg
- if certificate owner not "John Doe" : exit prg
I guess there must be some win-apis to retrieve the certificate data of the current process...