Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter Dart:无法从存储在资源中的字节创建X509Certificate ASN1_Flutter_Dart_Certificate_X509_Asn1 - Fatal编程技术网

Flutter Dart:无法从存储在资源中的字节创建X509Certificate ASN1

Flutter Dart:无法从存储在资源中的字节创建X509Certificate ASN1,flutter,dart,certificate,x509,asn1,Flutter,Dart,Certificate,X509,Asn1,我尝试从Dart中的资源中读取证书 // using this helper function Future<Uint8List> loadUint8List(String key, { bool cache = true }) async { final ByteData data = await rootBundle.load(key); if (data == null) return null; if (data.leng

我尝试从Dart中的资源中读取证书

// using this helper function
Future<Uint8List> loadUint8List(String key, { bool cache = true }) async {
      final ByteData data = await rootBundle.load(key);
      if (data == null)
        return null;

      if (data.lengthInBytes < 50 * 1024) {
        return data.buffer.asUint8List();
      }
    }

await loadUint8List("assets/raw_data/certificates/sealgen_dets27_ec256")
          .then((list) {
    var asn1 = asnLib.ASN1Sequence.fromBytes(liat);
    var cert = X509Certificate.fromAsn1(asn1);

 }
//使用此helper函数
Future loadUint8List(字符串键,{bool cache=true})异步{
final ByteData data=wait rootBundle.load(键);
如果(数据==null)
返回null;
如果(数据长度字节<50*1024){
返回data.buffer.asUint8List();
}
}
等待装船清单(“资产/原始数据/证书/密封件编号27\u ec256”)
.然后((列表){
var asn1=asnLib.ASN1Sequence.fromBytes(liat);
var cert=X509Certificate.fromAsn1(asn1);
}
但是,从ASN1序列创建x509证书(对象来自x509库)时出现此错误:

错误状态:无法获取节点为[1,3,36,3,3,2,8,1,1,7]的ObjectIdentifier的名称。

有人能帮忙吗