|
1 | 1 | // Copyright (c) 2015-2021, NVIDIA CORPORATION.
|
2 | 2 | // SPDX-License-Identifier: Apache-2.0
|
3 | 3 |
|
| 4 | +// Program icert provides a command-line wrapper around package icertpkg APIs. |
| 5 | +// |
| 6 | +// The following can be obtained by running the "icert -h" command: |
| 7 | +// |
| 8 | +// Usage of icert: |
| 9 | +// -ca |
| 10 | +// generated CA Certicate usable for signing Endpoint Certificates |
| 11 | +// -caCert string |
| 12 | +// path to CA Certificate |
| 13 | +// -caKey string |
| 14 | +// path to CA Certificate's PrivateKey |
| 15 | +// -cert string |
| 16 | +// path to Endpoint Certificate |
| 17 | +// -country value |
| 18 | +// generated Certificate's Subject.Country |
| 19 | +// -dns value |
| 20 | +// generated Certificate's DNS Name |
| 21 | +// -ed25519 |
| 22 | +// generate key via Ed25519 |
| 23 | +// -ip value |
| 24 | +// generated Certificate's IP Address |
| 25 | +// -key string |
| 26 | +// path to Endpoint Certificate's PrivateKey |
| 27 | +// -locality value |
| 28 | +// generated Certificate's Subject.Locality |
| 29 | +// -organization value |
| 30 | +// generated Certificate's Subject.Organization |
| 31 | +// -postalCode value |
| 32 | +// generated Certificate's Subject.PostalCode |
| 33 | +// -province value |
| 34 | +// generated Certificate's Subject.Province |
| 35 | +// -rsa |
| 36 | +// generate key via RSA |
| 37 | +// -streetAddress value |
| 38 | +// generated Certificate's Subject.StreetAddress |
| 39 | +// -ttl uint |
| 40 | +// generated Certificate's time to live in days |
| 41 | +// -v verbose mode |
| 42 | +// |
| 43 | +// Precisely one of "-ed25519" or "-rsa" must be specified. |
| 44 | +// |
| 45 | +// A "-ttl" must be specified. |
| 46 | +// |
| 47 | +// Both "-caCert" and "-caKey" must be specified. |
| 48 | +// |
| 49 | +// If "-ca" is specified, none of "-cert" nor "key" may be specified. |
| 50 | +// Similarly, neither "-dns" nor "-ip" may be specified. |
| 51 | +// |
| 52 | +// If "-ca" is not specified, both "-cert" and "-key" must be specified. |
| 53 | +// Similarly, at least one "-dns" and/or one "-ip" must be specified. |
| 54 | +// |
4 | 55 | package main
|
5 | 56 |
|
6 | 57 | import (
|
|
0 commit comments