loadCsrBytes method

X509Request loadCsrBytes(
  1. Uint8List bytes
)
inherited

Loads a CSR from bytes (auto-detect PEM vs DER).

Implementation

X509Request loadCsrBytes(Uint8List bytes) {
  if (_looksLikeCsrPem(bytes)) {
    return loadCsrPem(String.fromCharCodes(bytes));
  }
  return loadCsrDer(bytes);
}