1 | .TH creddy 1 "July 2012" "ABAC 0.2.2" |
---|
2 | |
---|
3 | .SH NAME |
---|
4 | creddy \- ABAC X.509 identity and attribute certificate manager |
---|
5 | |
---|
6 | .SH SYNOPSIS |
---|
7 | |
---|
8 | .B creddy [ --<mode> ] --help |
---|
9 | |
---|
10 | .SH DESCRIPTION |
---|
11 | |
---|
12 | creddy is an awesome and wonderful ABAC credential management tool. It |
---|
13 | creates, verifies, and otherwise frobnicates X.509 identity and |
---|
14 | attribute certificates. The output of the tool is suitable for use with |
---|
15 | ABAC. Additionally, the self-signed X.509 identity certs (with |
---|
16 | associated private keys) can be used with OpenSSL. Although creddy |
---|
17 | only generates self-signed identity, it can verify and sanity check |
---|
18 | none self-signed identity certs |
---|
19 | |
---|
20 | .SH OPTIONS |
---|
21 | |
---|
22 | .SS --generate |
---|
23 | Generate an X.509 identity cert and private key pair unless an external private key is specified. The certificate is saved in ${cn}_ID.pem and the generated private key is saved in ${cn}_private.pem |
---|
24 | |
---|
25 | .P |
---|
26 | Note that private key generation is slow and uses a lot of entropy. You can generate entropy by moving your mouse a lot or running large find commands on your local file systems |
---|
27 | |
---|
28 | .TP |
---|
29 | .B --cn |
---|
30 | common name used on certificate, provided as a convenience and ignored by ABAC |
---|
31 | |
---|
32 | .TP |
---|
33 | .B --validity |
---|
34 | optional certificate validity. This argument takes a time period followed by an optional suffix of s m h d y (defaults to d if omitted). The default is 1080 days |
---|
35 | |
---|
36 | .TP |
---|
37 | .B --out |
---|
38 | optional output directory. Must exist before invoking the command |
---|
39 | |
---|
40 | .TP |
---|
41 | .B --key |
---|
42 | optional external private key to be use for this identity |
---|
43 | |
---|
44 | .TP |
---|
45 | .B --p |
---|
46 | optional passphrase flag if the external private key supplied is encrypted. If the passphrase |
---|
47 | is saved in a file 'pfile', then --p=pfile |
---|
48 | |
---|
49 | .SS --verify |
---|
50 | verify the signature on a (self-signed and none self-signed) X.509 identity cert or an X.509 attribute cert and the validity of the cert |
---|
51 | |
---|
52 | .TP |
---|
53 | .B --cert |
---|
54 | X.509 identity cert |
---|
55 | |
---|
56 | .TP |
---|
57 | .B --attrcert |
---|
58 | optional X.509 attribute cert. |
---|
59 | |
---|
60 | .SS --keyid |
---|
61 | extract the subjectKeyIdentifier (SHA1 hash) from an X.509 identity cert |
---|
62 | |
---|
63 | .TP |
---|
64 | .B --cert |
---|
65 | X.509 identity cert |
---|
66 | |
---|
67 | .SS --attribute |
---|
68 | generate an X.509 attribute cert representing an ABAC credential |
---|
69 | |
---|
70 | An attribute cert has one or more subjects. A single subject may be defined without a role or oset. Otherwise, subjects are defined by a pair of a --subject-{cert,id} and --subject-{role,oset} and may include an optional --subject-link or just --subject-obj or --subject-cert. Providing multiple subjects creates an intersection certificate |
---|
71 | |
---|
72 | .TP |
---|
73 | .B --issuer |
---|
74 | X.509 identity cert issuing the credential |
---|
75 | |
---|
76 | .TP |
---|
77 | .B --key |
---|
78 | private key associated with issuer cert |
---|
79 | |
---|
80 | .TP |
---|
81 | .B --p |
---|
82 | optional passphrase if the private key is encrypted |
---|
83 | |
---|
84 | .TP |
---|
85 | .B --role |
---|
86 | role in issuer's local attribute space |
---|
87 | |
---|
88 | .TP |
---|
89 | .B --oset |
---|
90 | o-set in issuer's local attribute space |
---|
91 | |
---|
92 | .TP |
---|
93 | .B --subject-cert |
---|
94 | X.509 identity cert representing the principal to which the role is being issued. This fulfills the same purpose as --subject-id and should only be used once per subject |
---|
95 | |
---|
96 | .TP |
---|
97 | .B --subject-id |
---|
98 | public key identifier (SHA1 hash) of the principal to which the role is being issued. This fulfills the same purpose as --subject-cert and should only be used once per subject |
---|
99 | |
---|
100 | .TP |
---|
101 | .B --subject-role |
---|
102 | optional role in subject's local attribute space. If the issuer is A, role is r1, subject is B, and subject-role is r2, the attribute issued will be A.r1 <- B.r2 |
---|
103 | |
---|
104 | .TP |
---|
105 | .B --subject-oset |
---|
106 | optional oset in subject's local attribute space. If the issuer is A, oset is o1, subject is B, and subject-oset is o2, the attribute issued will be A.o1 <- B.o2 |
---|
107 | |
---|
108 | .TP |
---|
109 | .B --subject-link |
---|
110 | optional linking role in subject's local attribute space. If the issuer is A, oset is o1, subject is B, subject-link is r2 and subject-oset is o2, the attribute issued will be A.o1 <- B.r2.o2 |
---|
111 | |
---|
112 | .TP |
---|
113 | .B --subject-obj |
---|
114 | optional object in subject's local attribute space. If the issuer is A, oset is o1, and subject-obj is o2, the attribute issued will be A.o1 <- o2 |
---|
115 | |
---|
116 | .TP |
---|
117 | .B --validity |
---|
118 | optional certificate validity. This argument takes a time period followed by an optional suffix of s m h d y (defaults to d if omitted). The default is 365 days |
---|
119 | |
---|
120 | .TP |
---|
121 | .B --out |
---|
122 | where to save DER-encoded attribute cert. In order to interoperate with the rest of ABAC, this name should end in _attr.der |
---|
123 | |
---|
124 | .SS --keycheck |
---|
125 | Do a sanity check on a private key file |
---|
126 | |
---|
127 | .TP |
---|
128 | .B --key |
---|
129 | private key to be used |
---|
130 | |
---|
131 | .TP |
---|
132 | .B --p |
---|
133 | passphrase file to be used |
---|
134 | |
---|
135 | .SS --roles |
---|
136 | Extract the roles from an X.509 attribute cert |
---|
137 | |
---|
138 | .TP |
---|
139 | .B --cert |
---|
140 | X.509 attribute cert containing ABAC roles |
---|
141 | |
---|
142 | .SS --osets |
---|
143 | Extract the osets from an X.509 attribute cert |
---|
144 | |
---|
145 | .TP |
---|
146 | .B --cert |
---|
147 | X.509 attribute cert containing ABACosets |
---|
148 | |
---|
149 | .SS --display |
---|
150 | Displays metadata from an X.509 identity or attribute cert |
---|
151 | |
---|
152 | .TP |
---|
153 | .B --show=[issuer,..,all] |
---|
154 | comma-separated list of: |
---|
155 | |
---|
156 | issuer DN of issuer |
---|
157 | subject DN of subject |
---|
158 | validity validity period |
---|
159 | roles attribute cert roles (fails silently on ID certs) |
---|
160 | osets attribute cert osets (fails silently on ID certs) |
---|
161 | all all of the above |
---|
162 | |
---|
163 | .TP |
---|
164 | .B --cert |
---|
165 | X.509 identity or attribute cert |
---|
166 | |
---|
167 | .SS --version |
---|
168 | display ABAC/creddy version |
---|
169 | |
---|
170 | .SH EXAMPLES |
---|
171 | |
---|
172 | .TP |
---|
173 | Generate ID cert and private key pairs: |
---|
174 | |
---|
175 | .B creddy --generate --cn Alice |
---|
176 | .br |
---|
177 | .B creddy --generate --cn Bob |
---|
178 | |
---|
179 | .TP |
---|
180 | Issue the credential Alice.friend <- Bob |
---|
181 | |
---|
182 | creddy --attribute \\ |
---|
183 | --issuer Alice_ID.pem --key Alice_private.pem \\ |
---|
184 | --role friend --subject-cert Bob_ID.pem \\ |
---|
185 | --out Alice_friend__Bob_attr.der |
---|
186 | |
---|
187 | .SH AUTHOR |
---|
188 | |
---|
189 | Written by Mike Ryan |
---|
190 | .br |
---|
191 | Updated by Mei-Hui Su <mei@ISI.EDU>. |
---|
192 | |
---|
193 | .SH BUGS |
---|
194 | |
---|
195 | None yet. Report to http://abac.deterlab.net/ |
---|
196 | |
---|
197 | .SH COPYRIGHT |
---|
198 | |
---|
199 | Copyright (c) 2010-2012 USC/ISI. Released under MIT license. See COPYING included with source for details. |
---|