@@ -21,15 +21,18 @@ Options:
21
21
-?, -h, --help Show help and usage information
22
22
23
23
Commands:
24
- add Add information to a BOM (currently supports files)
25
- analyze Analyze a BOM file
26
- convert Convert between different BOM formats
27
- diff <from-file> <to-file> Generate a BOM diff
28
- merge Merge two or more BOMs
29
- validate Validate a BOM
24
+ add Add information to a BOM (currently supports files)
25
+ analyze Analyze a BOM file
26
+ convert Convert between different BOM formats
27
+ diff <from-file> <to-file> Generate a BOM diff
28
+ keygen Generates an RSA public/private key pair for BOM signing
29
+ merge Merge two or more BOMs
30
+ sign Sign a BOM or file
31
+ validate Validate a BOM
32
+ verify Verify signatures in a BOM
30
33
```
31
34
32
- The CycloneDX CLI tool currently supports BOM analysis, diffing, merging and format conversions .
35
+ The CycloneDX CLI tool currently supports BOM analysis, modification, diffing, merging, format conversion, signing and verification .
33
36
34
37
Conversion from all CycloneDX BOM versions and CSV is supported.
35
38
@@ -157,6 +160,19 @@ Options:
157
160
Reporting on components with version changes:
158
161
` cyclonedx-cli diff sbom-from.xml sbom-to.xml --component-versions `
159
162
163
+ ## Keygen Command
164
+
165
+ ```
166
+ keygen
167
+ Generates an RSA public/private key pair for BOM signing
168
+
169
+ Usage:
170
+ cyclonedx [options] keygen
171
+
172
+ Options:
173
+ --private-key-file <private-key-file> Filename for generated private key file (defaults to "private.key")
174
+ --public-key-file <public-key-file> Filename for generated public key file (defaults to "public.key")
175
+ ```
160
176
161
177
## Merge Command
162
178
@@ -189,6 +205,42 @@ Merge two XML formatted BOMs:
189
205
Merging two BOMs and piping output to additional tools:
190
206
` cyclonedx-cli merge --input-files sbom1.xml sbom2.xml --output-format json | grep "something" `
191
207
208
+ ## Sign Command
209
+
210
+ Sign a BOM or file
211
+
212
+ ### Sign Bom Subcommand
213
+
214
+ ```
215
+ bom
216
+ Sign the entire BOM document
217
+
218
+ Usage:
219
+ cyclonedx [options] sign bom <bom-file>
220
+
221
+ Arguments:
222
+ <bom-file> BOM filename
223
+
224
+ Options:
225
+ --key-file <key-file> Signing key filename (RSA private key in PEM format, defaults to "private.key")
226
+ ```
227
+
228
+ ### Sign File Subcommand
229
+
230
+ ```
231
+ file
232
+ Sign arbitrary files and generate a PKCS1 RSA SHA256 signature file
233
+
234
+ Usage:
235
+ cyclonedx [options] sign file <file>
236
+
237
+ Arguments:
238
+ <file> Filename of the file the signature will be created for
239
+
240
+ Options:
241
+ --key-file <key-file> Signing key filename (RSA private key in PEM format, defaults to "private.key")
242
+ --signature-file <signature-file> Filename of the generated signature file (defaults to the filename with ".sig" appended)
243
+ ```
192
244
193
245
## Validate Command
194
246
@@ -210,6 +262,43 @@ Options:
210
262
Validate BOM and return non-zero exit code (handy for automatically "breaking" a build, etc)
211
263
` cyclonedx-cli validate --input-file sbom.xml --fail-on-errors `
212
264
265
+ ## Verify Command
266
+
267
+ Verify signatures for BOMs and files
268
+
269
+ ### Verify All Subcommand
270
+
271
+ ```
272
+ all
273
+ Verify all signatures in a BOM
274
+
275
+ Usage:
276
+ cyclonedx [options] verify all <bom-file>
277
+
278
+ Arguments:
279
+ <bom-file> BOM filename
280
+
281
+ Options:
282
+ --key-file <key-file> Public key filename (RSA public key in PEM format, defaults to "public.key")
283
+ ```
284
+
285
+ ### Verify File Subcommand
286
+
287
+ ```
288
+ file
289
+ Verifies a PKCS1 RSA SHA256 signature file for an abritrary file
290
+
291
+ Usage:
292
+ cyclonedx [options] verify file <file>
293
+
294
+ Arguments:
295
+ <file> File the signature file is for
296
+
297
+ Options:
298
+ --key-file <key-file> Public key filename (RSA public key in PEM format, defaults to "public.key")
299
+ --signature-file <signature-file> Signature file to be verified (defaults to the filename with ".sig" appended)
300
+ ```
301
+
213
302
# Docker Image
214
303
215
304
The CycloneDX CLI tool can also be run using docker ` docker run cyclonedx/cyclonedx-cli ` .
0 commit comments