@@ -79,167 +79,6 @@ be larger than the role max TTL.`,
79
79
return fields
80
80
}
81
81
82
- // addCACommonFields adds fields with help text specific to CA
83
- // certificate issuing and signing
84
- // func addCACommonFields(fields map[string]*framework.FieldSchema) map[string]*framework.FieldSchema {
85
- // fields = addIssueAndSignCommonFields(fields)
86
-
87
- // fields["alt_names"] = &framework.FieldSchema{
88
- // Type: framework.TypeString,
89
- // Description: `The requested Subject Alternative Names, if any,
90
- // in a comma-delimited list. May contain both
91
- // DNS names and email addresses.`,
92
- // DisplayAttrs: &framework.DisplayAttributes{
93
- // Name: "DNS/Email Subject Alternative Names (SANs)",
94
- // },
95
- // }
96
-
97
- // fields["common_name"] = &framework.FieldSchema{
98
- // Type: framework.TypeString,
99
- // Description: `The requested common name; if you want more than
100
- // one, specify the alternative names in the alt_names
101
- // map. If not specified when signing, the common
102
- // name will be taken from the CSR; other names
103
- // must still be specified in alt_names or ip_sans.`,
104
- // }
105
-
106
- // fields["ttl"] = &framework.FieldSchema{
107
- // Type: framework.TypeDurationSecond,
108
- // Description: `The requested Time To Live for the certificate;
109
- // sets the expiration date. If not specified
110
- // the role default, backend default, or system
111
- // default TTL is used, in that order. Cannot
112
- // be larger than the mount max TTL. Note:
113
- // this only has an effect when generating
114
- // a CA cert or signing a CA cert, not when
115
- // generating a CSR for an intermediate CA.`,
116
- // DisplayAttrs: &framework.DisplayAttributes{
117
- // Name: "TTL",
118
- // },
119
- // }
120
-
121
- // fields["ou"] = &framework.FieldSchema{
122
- // Type: framework.TypeCommaStringSlice,
123
- // Description: `If set, OU (OrganizationalUnit) will be set to
124
- // this value.`,
125
- // DisplayAttrs: &framework.DisplayAttributes{
126
- // Name: "OU (Organizational Unit)",
127
- // },
128
- // }
129
-
130
- // fields["organization"] = &framework.FieldSchema{
131
- // Type: framework.TypeCommaStringSlice,
132
- // Description: `If set, O (Organization) will be set to
133
- // this value.`,
134
- // }
135
-
136
- // fields["country"] = &framework.FieldSchema{
137
- // Type: framework.TypeCommaStringSlice,
138
- // Description: `If set, Country will be set to
139
- // this value.`,
140
- // }
141
-
142
- // fields["locality"] = &framework.FieldSchema{
143
- // Type: framework.TypeCommaStringSlice,
144
- // Description: `If set, Locality will be set to
145
- // this value.`,
146
- // DisplayAttrs: &framework.DisplayAttributes{
147
- // Name: "Locality/City",
148
- // },
149
- // }
150
-
151
- // fields["province"] = &framework.FieldSchema{
152
- // Type: framework.TypeCommaStringSlice,
153
- // Description: `If set, Province will be set to
154
- // this value.`,
155
- // DisplayAttrs: &framework.DisplayAttributes{
156
- // Name: "Province/State",
157
- // },
158
- // }
159
-
160
- // fields["street_address"] = &framework.FieldSchema{
161
- // Type: framework.TypeCommaStringSlice,
162
- // Description: `If set, Street Address will be set to
163
- // this value.`,
164
- // DisplayAttrs: &framework.DisplayAttributes{
165
- // Name: "Street Address",
166
- // },
167
- // }
168
-
169
- // fields["postal_code"] = &framework.FieldSchema{
170
- // Type: framework.TypeCommaStringSlice,
171
- // Description: `If set, Postal Code will be set to
172
- // this value.`,
173
- // DisplayAttrs: &framework.DisplayAttributes{
174
- // Name: "Postal Code",
175
- // },
176
- // }
177
-
178
- // fields["serial_number"] = &framework.FieldSchema{
179
- // Type: framework.TypeString,
180
- // Description: `The requested serial number, if any. If you want
181
- // more than one, specify alternative names in
182
- // the alt_names map using OID 2.5.4.5.`,
183
- // }
184
-
185
- // return fields
186
- // }
187
-
188
- // // addCAKeyGenerationFields adds fields with help text specific to CA key
189
- // // generation and exporting
190
- // func addCAKeyGenerationFields(fields map[string]*framework.FieldSchema) map[string]*framework.FieldSchema {
191
- // fields["exported"] = &framework.FieldSchema{
192
- // Type: framework.TypeString,
193
- // Description: `Must be "internal" or "exported". If set to
194
- // "exported", the generated private key will be
195
- // returned. This is your *only* chance to retrieve
196
- // the private key!`,
197
- // }
198
-
199
- // fields["key_bits"] = &framework.FieldSchema{
200
- // Type: framework.TypeInt,
201
- // Default: 2048,
202
- // Description: `The number of bits to use. You will almost
203
- // certainly want to change this if you adjust
204
- // the key_type.`,
205
- // DisplayAttrs: &framework.DisplayAttributes{
206
- // Value: 2048,
207
- // },
208
- // }
209
-
210
- // fields["key_type"] = &framework.FieldSchema{
211
- // Type: framework.TypeString,
212
- // Default: "rsa",
213
- // Description: `The type of key to use; defaults to RSA. "rsa"
214
- // and "ec" are the only valid values.`,
215
- // AllowedValues: []interface{}{"rsa", "ec"},
216
- // DisplayAttrs: &framework.DisplayAttributes{
217
- // Value: "rsa",
218
- // },
219
- // }
220
- // return fields
221
- // }
222
-
223
- // addCAIssueFields adds fields common to CA issuing, e.g. when returning
224
- // an actual certificate
225
- // func addCAIssueFields(fields map[string]*framework.FieldSchema) map[string]*framework.FieldSchema {
226
- // fields["max_path_length"] = &framework.FieldSchema{
227
- // Type: framework.TypeInt,
228
- // Default: -1,
229
- // Description: "The maximum allowable path length",
230
- // }
231
-
232
- // fields["permitted_dns_domains"] = &framework.FieldSchema{
233
- // Type: framework.TypeCommaStringSlice,
234
- // Description: `Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).`,
235
- // DisplayAttrs: &framework.DisplayAttributes{
236
- // Name: "Permitted DNS Domains",
237
- // },
238
- // }
239
-
240
- // return fields
241
- // }
242
-
243
82
func addRoleFields (fields map [string ]* framework.FieldSchema ) map [string ]* framework.FieldSchema {
244
83
245
84
fields ["name" ] = & framework.FieldSchema {
0 commit comments