Dart Requires Chilkat v11.0.0+
Dart
Example: Crypt2.LastSignerCert method
Demonstrates how to call the LastSignerCert method.Chilkat Dart Downloads
import 'package:chilkat/chilkat.dart';
void main() {
final crypt = CkCrypt2();
final p7mPath = 'qa_data/p7m/Firma.docx.p7m';
final outPath = 'qa_output/Firma.docx';
try {
crypt.verifyP7M(p7mPath, outPath);
} on ChilkatException catch (e) {
print(e.lastErrorText);
return;
}
// Examine the certificate(s) used for signing.
final numSigners = crypt.numSignerCerts;
var i = 0;
final cert = CkCert();
while (i < numSigners) {
crypt.lastSignerCert(i, cert);
print('Signer: ${cert.subjectDN}');
i++;
}
}