mei_rt2
Last change
on this file since f89b991 was
5338995,
checked in by Mei <mei@…>, 12 years ago
|
1) change names for the sample scripts under swig
|
-
Property mode set to
100755
|
File size:
277 bytes
|
Rev | Line | |
---|
[5338995] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | from sys import argv, exit |
---|
| 4 | from ABAC import ID |
---|
| 5 | |
---|
| 6 | if len(argv) < 2: |
---|
| 7 | print "Usage: abac_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.id_keyid() |
---|
Note: See
TracBrowser
for help on using the repository browser.