Automate Extended Validation (EV) code signing with SafeNet eToken

Expanding on answers already in this thread, it is possible to provide the token password using the standard signtool program from microsoft. 0. Open SafeNet Client in Advanced View Install paths may vary, but for me the SafeNet client is installed to: C:\Program Files\SafeNet\Authentication\SAC\x64\SACTools.exe Click the gear icon in the upper right to open “advanced … Read more

Get timestamp from Authenticode Signed files in .NET

Back to the original question, I could not find managed way so ended up using pInvoke as follows: public static bool IsTimestamped(string filename) { try { int encodingType; int contentType; int formatType; IntPtr certStore = IntPtr.Zero; IntPtr cryptMsg = IntPtr.Zero; IntPtr context = IntPtr.Zero; if (!WinCrypt.CryptQueryObject( WinCrypt.CERT_QUERY_OBJECT_FILE, Marshal.StringToHGlobalUni(filename), WinCrypt.CERT_QUERY_CONTENT_FLAG_ALL, WinCrypt.CERT_QUERY_FORMAT_FLAG_ALL, 0, out encodingType, out contentType, … Read more

Automate Extended Validation (EV) code signing

There is no way to bypass the login dialog AFAIK, but what you can do is configure the SafeNet Authentication Client so it only asks it once per login session. I quote the SAC doc (found once installed in \ProgramFiles\SafeNet\Authentication\SAC\SACHelp.chm, chapter ‘Client Settings‘, ‘Enabling Client Logon‘) here: When single logon is enabled, users can access … Read more