i have HTML file which is password protected and i am signing using (chilkat) that is third party tool. the problem is that it neither get sign nor giving me any error. how i will identify in my code that file require password
here is my code
if (!pcSourceFile.EndsWith(".pdf"))
{
byte[] lcReadByte = null;
pSerialNumber = locertTest.SerialNumber;
Issuer = locertTest.IssuerCN;
SignTime = DateTime.Now;
loCryptoTest.SetSigningCert(locertTest);
byte[] lcWriteBytes = null;
lcReadByte = loCryptoTest.ReadFile(pcSourceFile);
//lcWriteBytes = loCryptoTest.OpaqueSignBytes(lcReadByte);
lcWriteBytes = loCryptoTest.OpaqueSignBytes(lcReadByte);
if (lcWriteBytes.Length == 0)
{
GlobalStatic.WriteLog(loCryptoTest.LastErrorText, "Opeque Sig nature Error", "Signature");
return false;
}
loCryptoTest.WriteFile(pcDestFile, lcWriteBytes);
lcReadByte = null;
lcWriteBytes = null;
}