generateCertificate method

Future<File> generateCertificate()

Implementation

Future<File> generateCertificate() async {
  final arguments = [
    '-in "${certificateP12.path}"',
    '-clcerts',
    '-nokeys',
    '-out "${certPem.path}"',
    '-passin pass:',
  ];

  await run('openssl pkcs12 ${arguments.join(' ')}');
  return certPem;
}