pem method

Future<void> pem(
  1. Shell shell,
  2. Directory certs
)

Implementation

Future<void> pem(Shell shell, Directory certs) async {
  const fs = LocalFileSystem();
  final cat = await shell.start('cat', arguments: [
    '${certs.path}/ca/ca.key',
    '${certs.path}/ca/ca.crt',
  ]);
  await cat.stdout.writeToFile(fs.file("${certs.path}/ca/ca.pem"));
  await cat.stderr.drain<void>();
}