We are deploying an executable to a partner’s site off our network. The executable will dynamically load assemblies from a folder to perform certain tasks.
The executable will be signed and timestamped using a certificate issued by our CA. I want to ensure that assemblies loaded by the executable have been signed by our CA. How do I do this using C#?
You need to compare IssuerName properties of corresponding instances of X509Certificate2 class. Note that IssuerName is a reference to complex object whose properties must be inspected and compared.