Signer constructor

Signer({
  1. required File wwdrPem,
  2. required File certificateP12,
  3. 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!'),
  );
}