| 1 |
Credential Data File Format |
| 2 |
=========================== |
| 3 |
|
| 4 |
Every credential stored on the myproxy server has a credential file |
| 5 |
(with .creds extension) and a data file (with .data extension). The |
| 6 |
credential file stores the proxy while the data file stores other |
| 7 |
information about the credential. |
| 8 |
|
| 9 |
The credential filename has the format |
| 10 |
<username>.creds or |
| 11 |
<username>-<credname>.creds |
| 12 |
|
| 13 |
and the data filename has the format |
| 14 |
<username>.data or |
| 15 |
<username>-<credname>.data |
| 16 |
|
| 17 |
where, if <username> contains '/', then it's the MD5 digest of the |
| 18 |
username instead, and '/' characters in <credname> are replaced with |
| 19 |
'-' characters. |
| 20 |
|
| 21 |
Unfortunately, <username> may contain '-' making it ambiguous as to |
| 22 |
where <username> ends and <credname> starts, so USERNAME and NAME in |
| 23 |
the data file must be used to disambiguate. |
| 24 |
|
| 25 |
The format of a data file is as follows : |
| 26 |
|
| 27 |
OWNER=<owner name> |
| 28 |
LIFETIME=<credential lifetime> |
| 29 |
|
| 30 |
The data file may also contain the following optional fields : |
| 31 |
|
| 32 |
PASSPHRASE=<passphrase> |
| 33 |
NAME=<credential name> |
| 34 |
DESCRIPTION=<credential description> |
| 35 |
RETRIEVERS=<retriever regex> |
| 36 |
RENEWERS=<renewer regex> |
| 37 |
USERNAME=<username> |
| 38 |
|
| 39 |
Every data file ends with END_OPTIONS field that marks the end of the |
| 40 |
data file. |
| 41 |
|