blob: b28e817ad3a13aaf919585b021d34ce4ab2f965f [file] [log] [blame]
Lev Walkincfcf5532004-09-26 13:13:31 +00001
Lev Walkin92157292005-02-28 15:53:32 +00002GENERAL INFORMATION
3===================
4
Lev Walkincfcf5532004-09-26 13:13:31 +00005The X.509 (PKIX1) certificate decoder. Invoking `make` will compile the ASN.1
Lev Walkin1e318832005-02-28 15:37:08 +00006specifications from the rfc3280.txt in the above directory.
7
Lev Walkin5e2f23e2006-08-25 01:51:29 +00008The ../../skeletons/converter-sample.c will supply the missing
Lev Walkin1e318832005-02-28 15:37:08 +00009"int main()" routine which drives the decoding process.
Lev Walkincfcf5532004-09-26 13:13:31 +000010
Lev Walkin92157292005-02-28 15:53:32 +000011x509dump USAGE
12==============
13
14To use the code, you'll have to prepare an X.509 certificate in DER encoding.
15The typical X.509 certificate will have a PEM form (DER encoded data wrapped
16in base64, wrapped in PEM "BEGIN" and "END" sections). The openssl x509 utility
17may be used to convert between PEM and DER.
18
19 EXAMPLE: Convert 'certificate.pem' into 'certificate.der':
20
21 openssl x509 -inform PEM -in certificate.pem \
22 -outform DER -out certificate.der
23
24After convertsion, the x509dump utility may be used to dump the contents
25of the DER-encoded X.509 certificate:
26
Lev Walkin5e2f23e2006-08-25 01:51:29 +000027 ./x509dump certificate.der # Print as XML (BASIC-XER)
Lev Walkin92157292005-02-28 15:53:32 +000028
29The full list of recognized command line options may be obtained with
30
31 > ./x509dump -h
Lev Walkin92157292005-02-28 15:53:32 +000032