Esempio n. 1
0
 private void CallDigest()
 {
     try
     {
         Digest.GetCertChainFromAlias();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Please select a certificate to sign the XML");
         Console.WriteLine(ex.ToString());
     }
     byte[] signedData = Digest.SignXmlDigest(
         Digest.GetDataToSignByteStreamFromFilePath("E:\\XML\\keystore-demo\\big_digest.xml")
         );
     File.WriteAllBytes("E:\\XML\\keystore-demo\\big_digest_signed.xml", signedData);
     System.Diagnostics.Process.Start(@"E:\\XML\\keystore-demo\\big_digest_signed.xml");
     MessageBox.Show("Done");
 }