Category Archives: pki

Verify pkcs#7 CMS

Use OpenSSL C:\OpenSSL\bin\openssl\smime -verify -binary -in c:\temp\toverify.bin -out c:\temp\toverify_temp.bin -inform DER -noverify > output.txt Use CAPICOM string sodFile = @"C:\\temp\\sod.bin"; Utilities ut = new UtilitiesClass(); SignedData sd = new SignedDataClass(); sd.Verify( (Convert.ToBase64String(ByteUtil.ReadBinaryFile(sodFile))), false, CAPICOM_SIGNED_DATA_VERIFY_FLAG.CAPICOM_VERIFY_SIGNATURE_ONLY); Use Chilkat Chilkat.Mime mime = new … Continue reading

Posted in pki | Leave a comment