Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
9215729a
Commit
9215729a
authored
Feb 28, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more info
parent
1e318834
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
examples/sample.source.PKIX1/README
examples/sample.source.PKIX1/README
+34
-0
No files found.
examples/sample.source.PKIX1/README
View file @
9215729a
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment