Changeset 8116dd9
- Timestamp:
- Jul 13, 2011 6:48:08 PM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- ca5cda7
- Parents:
- 62e8e03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/cert_to_fedid.py
r62e8e03 r8116dd9 21 21 self.add_option('--cert', dest='cert', 22 22 help='Cretificate to copy subject from') 23 self.add_option('--nokey', dest='include_key', 24 action='store_false', default=True, 25 help='Do not include the key in the generated ID') 23 26 self.add_option('--cn', dest='cn', default=None, 24 27 help='Set the CN directly') … … 68 71 try: 69 72 of = os.fdopen(os.open(opts.out, 70 os.O_WRONLY | os.O_CREAT, 0600), 'w') 71 for inf in (tn, key): 73 os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0600), 'w') 74 if opts.include_key: sources = (tn, key) 75 else:sources = (tn,) 76 77 for inf in sources: 72 78 f = open(inf, 'r') 73 79 for line in f:
Note: See TracChangeset
for help on using the changeset viewer.