aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-02-28 15:53:32 +0000
committerLev Walkin <vlm@lionet.info>2005-02-28 15:53:32 +0000
commit9215729ab29ca1ff5a5e723b2ddfa5c1032e0324 (patch)
tree4df825c468890d2cb387342ad7681656f802bce5 /examples
parent1e318834c328bdd213527f717432fe40c1ebdf2e (diff)
more info
Diffstat (limited to 'examples')
-rw-r--r--examples/sample.source.PKIX1/README34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/sample.source.PKIX1/README b/examples/sample.source.PKIX1/README
index 8adf5a92..d204dab1 100644
--- a/examples/sample.source.PKIX1/README
+++ b/examples/sample.source.PKIX1/README
@@ -1,7 +1,41 @@
+GENERAL INFORMATION
+===================
+
The X.509 (PKIX1) certificate decoder. Invoking `make` will compile the ASN.1
specifications from the rfc3280.txt in the above directory.
The ../../skeletons/asn-decoder-template.c will supply the missing
"int main()" routine which drives the decoding process.
+x509dump USAGE
+==============
+
+To use the code, you'll have to prepare an X.509 certificate in DER encoding.
+The typical X.509 certificate will have a PEM form (DER encoded data wrapped
+in base64, wrapped in PEM "BEGIN" and "END" sections). The openssl x509 utility
+may be used to convert between PEM and DER.
+
+ EXAMPLE: Convert 'certificate.pem' into 'certificate.der':
+
+ openssl x509 -inform PEM -in certificate.pem \
+ -outform DER -out certificate.der
+
+After convertsion, the x509dump utility may be used to dump the contents
+of the DER-encoded X.509 certificate:
+
+ ./x509dump -x certificate.der # Print as XML (BASIC-XER)
+
+The full list of recognized command line options may be obtained with
+
+ > ./x509dump -h
+ Usage: ./x509dump [options] <data.ber> ...
+ Where options are:
+ -b <size> Set the i/o buffer size (default is 8192)
+ -c Check ASN.1 constraints after decoding
+ -d Enable debugging (-dd is even better)
+ -n <num> Process files <num> times
+ -s <size> Set the stack usage limit
+ -p Print out the decoded contents
+ -x Print out as XML
+