private void AttemptToSignAuthenticode(string path, bool strongName, X509Certificate2 certificate) { //_log.Debug(path); //_log.Debug(strongName); //_log.Debug(certificate); var authenticode = new AuthenticodeSigner(certificate, _log); AttemptToSign(() => authenticode.Sign(path, strongName)); }
private bool AttemptToSignAuthenticode(string path) { try { var authenticode = new AuthenticodeSigner(_certificate); AttemptToSign(() => authenticode.Sign(path, StrongName)); return(true); } catch (Exception) { return(false); } }
private bool AttemptToSignAuthenticode(string path) { try { var authenticode = new AuthenticodeSigner(Certificate); AttemptToSign(() => authenticode.Sign(path, StrongName)); return true; } catch (Exception) { return false; } }