crlDerToPem static method

String crlDerToPem(
  1. Uint8List bytes
)

Converts the given DER encoded CRL to a PEM string with the corresponding headers. The given bytes can be taken directly from a .crl file.

Implementation

static String crlDerToPem(Uint8List bytes) {
  return formatKeyString(base64.encode(bytes), BEGIN_CRL, END_CRL);
}