blob: 0873a248e1a40701ecec4c1b81afab3db01bc27b [file] [log] [blame]
Lev Walkince8ccfa2004-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
Lev Walkine057ca32004-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:
Lev Walkin9567bb72004-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.
Lev Walkine057ca32004-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
Lev Walkin9567bb72004-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.
Lev Walkin59d426e2004-09-23 22:18:25 +000033 Try this one out instead:
Lev Walkine057ca32004-09-05 10:41:17 +000034
Lev Walkin59d426e2004-09-23 22:18:25 +000035 cd ./examples/sample.source.PKIX1
36 make
37 ./x509dump -h
38
Lev Walkine057ca32004-09-05 10:41:17 +000039
40--
41Lev Walkin
42vlm@lionet.info