blob: c6a945917ef95bdfdef16ff7c0bbacb85f29fc6d [file] [log] [blame]
vlmcfa6f742004-08-20 13:38:07 +00001
2Q: Your compiler supplies a der_encode() procedure. How do I encode BER?
3A:
4 The DER (and CER) are stricter subsets of a more generic BER encoding
5 method. If you encode data with DER or CER, all BER-conformant decoders
6 will easily understand that. Hence, to encode data in the BER format,
7 simply use the DER encoder, der_encode().
8
9 See also: ISO/IEC 8825-1 / X.690:
10 "ASN.1 encoding rules: Specification of
11 Basic Encoding Rules (BER),
12 Canonical Encoding Rules (CER) and
13 Distinguished Encoding Rules (DER)"
14
vlme6bdf512004-09-05 10:41:17 +000015
16Q: I've tried doing ./asn1c/asn1c -P examples/*PKIX*93*, but compiler spits
17 several fatal failures and exits.
18A:
vlm8ef19852004-09-07 06:42:40 +000019 The old (RFC2459) PKIX1 specifications used ASN.1 Information Object
20 Classes, which is arguably one of the most complex ASN.1 concepts.
vlme6bdf512004-09-05 10:41:17 +000021
22 The asn1c parser and fixer subsystems currently understand most of
23 IOC syntax, but the compiler can cope with only the very basic
24 IOC semantics.
25
26 The goal of asn1c is to adequately support the practically necessary
27 subset of IOCs to compile PKIX1 and other real-world specs,
28 but this milestone isn't yet reached. Please contact me in case
29 you have special requirements, we can work it out.
30
vlm8ef19852004-09-07 06:42:40 +000031 However, the asn1c compiler is able to understand the newer PKIX1
32 ASN.1 specs, contained in RFC3280, which obsole RFC2459.
33 Try this one out:
vlme6bdf512004-09-05 10:41:17 +000034
vlm8ef19852004-09-07 06:42:40 +000035 ./asn1c/asn1c -P examples/rfc3280-*.asn1
vlme6bdf512004-09-05 10:41:17 +000036
37--
38Lev Walkin
39vlm@lionet.info