exportToP12 function
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).');
}