source: swig/python/abac_keyid.py @ f89b991

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
Line 
1#!/usr/bin/env python
2
3from sys import argv, exit
4from ABAC import ID
5
6if len(argv) < 2:
7    print "Usage: abac_keyid.py <cert.pem>"
8    exit(1)
9
10id = None
11try:
12    id = ID(argv[1])
13except Exception, e:
14    print "Problem loading cert: %s" % e
15    exit(1)
16
17print id.id_keyid()
Note: See TracBrowser for help on using the repository browser.