Closed sbrsubuvga closed 6 months ago
Hi It is not clear what you are trying to do here. Can you provide a code sample, or even better, a test case?
var sanExtSeq = ASN1Sequence();
sanExtSeq.add(ASN1ObjectIdentifier.fromName('dirName'));
ASN1Sequence dirName = ASN1Sequence(elements: [
// Add ASN.1 objects for each field using appropriate types from basic_utils
ASN1UTF8String(utf8StringValue:'1-haya|2-234|3-354'), // Replace with actual EGS serial number
ASN1UTF8String(utf8StringValue:'310175397400003'), // Replace with actual VAT number
ASN1Integer(BigInt.from(100)), // Assuming title is an integer (replace with actual value)
ASN1UTF8String(utf8StringValue:'0000 Zatca 3, Khobar'), // Replace with actual branch location
ASN1UTF8String(utf8StringValue: 'Food'), // Replace with actual branch industry
]);
getting an error "'dirName' is not recognized as an ASN.1 object.
This is the ASN1Object i need.
Have a look at the test https://github.com/wstrange/asn1lib/blob/5932416c36a881d6b21071f73c31729162de0cc8/test/asn1objectidentifier_test.dart#L173
If looks like dirName has to be registered first.
Does that help?
@sbrsubuvga Did the above hint solve your problem? If so, can you close this issue.
Closing this pending more feedback. Please feel free to reopen if this is still an issue
getting an error "'dirName' is not recognized as an ASN.1 object." when i generate this template's ASN.1 Object