Signer constructor
Signer(
{ - required File wwdrPem,
- required File certificateP12,
- required Directory directory,
})
Implementation
Signer({
required this.wwdrPem,
required this.certificateP12,
required this.directory,
}) {
if (!directory.existsSync()) directory.createSync();
if (!wwdrPem.existsSync()) throw Exception('Missing wwdr.pem');
if (!certificateP12.existsSync()) throw Exception('Missing cert.p12');
checkIsOpenSSLSupported().catchError(
(onError) => throw Exception('OpenSSL is not supported!'),
);
}