views:

254

answers:

0

Hello.

I am trying to have my application (C# under .NET 3.51 SP1) recognize that a file has come from a "safe" source.

My approach was I would sign the application and then, at a later date, I would use the private key from the same snk file to sign files. The application would use the public key (easily obtainable) and calculate if the signature was valid.

I can do all of the steps in this approach except extract the private key from the .snk file

I can also easily generate a private/public key pair file (PEM format) using OpenSSL but don't know how to sign the application with a PEM file - so I guess a second question would be does anyone know how to sign a .NET application using a PEM file?

Many Thanks in Advance

Matt