exportToP12 function

Future<String?> exportToP12(
  1. String privateKeyPem,
  2. String certificateBodyInBase64,
  3. String password
)

Implementation

Future<String?> exportToP12(
  String privateKeyPem,
  String certificateBodyInBase64,
  String password,
) async {
  // Validaciones básicas
  if (privateKeyPem.trim().isEmpty) {
    throw ArgumentError('privateKeyPem es requerido.');
  }
  if (certificateBodyInBase64.trim().isEmpty) {
    throw ArgumentError('certificateBodyInBase64 es requerido.');
  }

  throw UnsupportedError('exportToP12 no está implementado en esta SDK Dart. '
      'Considera generar el P12 en el servidor o implementar la generación via código nativo (Android/iOS).');
}