Forum Discussion
But how... As I said... There will be one aqFileCertificateInfo Object (empty value) returned back... If I want to check its properties.. broken with error
This uses the file in the example from here
- Jin3 years agoNew Contributor
Hi Marscha,
Thanks for your feedback... however I know this Weblink and I have to highlighten one sentence in there
.... If you try to call properties or methods on such a certificate from your tests, an error will occur.......
Means I got an "empty" CertInfo back in case of that the file does not have any digital signature.
My question is how can I know its an "empty" CertInfo before I do any checks on its properties....
- Marsha_R3 years agoModerator
What happened when you tried my example? Show the log please.
- Jin3 years agoNew Contributor
I did similar things but using script:
My code like
var certinf0 = aqFileSystem.GetFielInfo(file).CertificateInfo;
then I try to do some comparison like
aqObject.CompareProperty(certinfo.Subject, cmpContains, "some signature", true, 0);
Error occured:
Related Content
- 3 years ago
- 6 years ago
- 7 years ago
- 4 years ago
Recent Discussions
- 2 days ago