Changeset 0a16b28
- Timestamp:
- Aug 12, 2012 4:38:33 PM (12 years ago)
- Branches:
- compt_changes
- Children:
- 7bb03f0
- Parents:
- adf8517
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/db_to_certs.py
radf8517 r0a16b28 54 54 ELSE CONCAT(g.pid, '/', g.gid) 55 55 END, 56 CONCAT('-----BEGIN RSAPRIVATE KEY-----\\n',56 CONCAT('-----BEGIN PRIVATE KEY-----\\n', 57 57 s.privkey, 58 '-----END RSAPRIVATE KEY-----\\n',58 '-----END PRIVATE KEY-----\\n', 59 59 '-----BEGIN CERTIFICATE-----\\n', 60 60 s.cert, -
fedd/federation/util.py
radf8517 r0a16b28 302 302 303 303 def abac_pem_type(cert): 304 key_re = re.compile('\s*-----BEGIN RSAPRIVATE KEY-----$')304 key_re = re.compile('\s*-----BEGIN PRIVATE KEY-----$') 305 305 cert_re = re.compile('\s*-----BEGIN CERTIFICATE-----$') 306 306 type = None … … 359 359 # Initialize the diversions 360 360 divs = [diversion(s, e, fn=pfn, fd=pfd ) for s, e, pfn, pfd in ( 361 ('\s*-----BEGIN RSAPRIVATE KEY-----$',362 '\s*-----END RSAPRIVATE KEY-----$',361 ('\s*-----BEGIN PRIVATE KEY-----$', 362 '\s*-----END PRIVATE KEY-----$', 363 363 keyfile, kf), 364 364 ('\s*-----BEGIN CERTIFICATE-----$',
Note: See TracChangeset
for help on using the changeset viewer.