abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since df3fe37 was
9e51a80,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
sample perl/python code for libcreddy
|
-
Property mode set to
100755
|
File size:
278 bytes
|
Rev | Line | |
---|
[9e51a80] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | from sys import argv, exit |
---|
| 4 | from Creddy import ID |
---|
| 5 | |
---|
| 6 | if len(argv) < 2: |
---|
| 7 | print "Usage: creddy_keyid.py <cert.pem>" |
---|
| 8 | exit(1) |
---|
| 9 | |
---|
| 10 | id = None |
---|
| 11 | try: |
---|
| 12 | id = ID(argv[1]) |
---|
| 13 | except Exception, e: |
---|
| 14 | print "Problem loading cert: %s" % e |
---|
| 15 | exit(1) |
---|
| 16 | |
---|
| 17 | print id.keyid() |
---|
Note: See
TracBrowser
for help on using the repository browser.