@adobe/aio-cli-plugin-certificate 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -25
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
- package/src/certificate.js +7 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[](https://npmjs.org/package/@adobe/aio-cli-plugin-certificate)
|
|
2
2
|
[](https://npmjs.org/package/@adobe/aio-cli-plugin-certificate)
|
|
3
|
-
[](https://github.com/adobe/aio-cli-plugin-certificate/actions/workflows/node.js.yml)
|
|
4
4
|
[](https://codecov.io/gh/adobe/aio-cli-plugin-certificate/)
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -14,44 +14,39 @@ Adobe I/O CLI commands to generate and validate private certs, and public key pa
|
|
|
14
14
|
* [Usage](#usage)
|
|
15
15
|
* [Commands](#commands)
|
|
16
16
|
<!-- tocstop -->
|
|
17
|
+
|
|
17
18
|
# Usage
|
|
18
|
-
<!-- usage -->
|
|
19
19
|
```sh-session
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
|
|
23
|
-
$
|
|
24
|
-
@adobe/aio-cli-plugin-certificate/0.2.0 darwin-x64 node-v10.18.1
|
|
25
|
-
$ ./bin/run --help [COMMAND]
|
|
26
|
-
USAGE
|
|
27
|
-
$ ./bin/run COMMAND
|
|
28
|
-
...
|
|
20
|
+
$ aio plugins:install -g @adobe/aio-cli-plugin-certificate
|
|
21
|
+
$ # OR
|
|
22
|
+
$ aio discover -i
|
|
23
|
+
$ aio certificate --help
|
|
29
24
|
```
|
|
30
|
-
|
|
25
|
+
|
|
31
26
|
# Commands
|
|
32
27
|
<!-- commands -->
|
|
33
|
-
* [
|
|
34
|
-
* [
|
|
35
|
-
* [
|
|
28
|
+
* [`aio certificate`](#aio-certificate)
|
|
29
|
+
* [`aio certificate:generate`](#aio-certificategenerate)
|
|
30
|
+
* [`aio certificate:verify FILE`](#aio-certificateverify-file)
|
|
36
31
|
|
|
37
|
-
##
|
|
32
|
+
## `aio certificate`
|
|
38
33
|
|
|
39
34
|
Generate or verify a certificate for use with Adobe I/O
|
|
40
35
|
|
|
41
36
|
```
|
|
42
37
|
USAGE
|
|
43
|
-
$
|
|
38
|
+
$ aio certificate
|
|
44
39
|
```
|
|
45
40
|
|
|
46
|
-
_See code: [src/commands/certificate/index.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.
|
|
41
|
+
_See code: [src/commands/certificate/index.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.3.1/src/commands/certificate/index.js)_
|
|
47
42
|
|
|
48
|
-
##
|
|
43
|
+
## `aio certificate:generate`
|
|
49
44
|
|
|
50
45
|
Generate a new private/public key pair
|
|
51
46
|
|
|
52
47
|
```
|
|
53
48
|
USAGE
|
|
54
|
-
$
|
|
49
|
+
$ aio certificate:generate
|
|
55
50
|
|
|
56
51
|
OPTIONS
|
|
57
52
|
-c, --country=country Country Name
|
|
@@ -77,15 +72,15 @@ DESCRIPTION
|
|
|
77
72
|
services.
|
|
78
73
|
```
|
|
79
74
|
|
|
80
|
-
_See code: [src/commands/certificate/generate.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.
|
|
75
|
+
_See code: [src/commands/certificate/generate.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.3.1/src/commands/certificate/generate.js)_
|
|
81
76
|
|
|
82
|
-
##
|
|
77
|
+
## `aio certificate:verify FILE`
|
|
83
78
|
|
|
84
79
|
Verify a certificate for use with Adobe I/O
|
|
85
80
|
|
|
86
81
|
```
|
|
87
82
|
USAGE
|
|
88
|
-
$
|
|
83
|
+
$ aio certificate:verify FILE
|
|
89
84
|
|
|
90
85
|
ARGUMENTS
|
|
91
86
|
FILE file path to certificate to verify
|
|
@@ -97,7 +92,7 @@ DESCRIPTION
|
|
|
97
92
|
Verifies that the certificate is valid, and/or will not expire in [--days] days from now.
|
|
98
93
|
```
|
|
99
94
|
|
|
100
|
-
_See code: [src/commands/certificate/verify.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.
|
|
95
|
+
_See code: [src/commands/certificate/verify.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/0.3.1/src/commands/certificate/verify.js)_
|
|
101
96
|
<!-- commandsstop -->
|
|
102
97
|
|
|
103
98
|
## Contributing
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.
|
|
1
|
+
{"version":"0.3.1","commands":{"certificate:generate":{"id":"certificate:generate","description":"Generate a new private/public key pair\nGenerate a self-signed certificate to enable https:// on localhost or signing jwt payloads for interacting with Adobe services.\n","pluginName":"@adobe/aio-cli-plugin-certificate","pluginType":"core","aliases":[],"flags":{"keyout":{"name":"keyout","type":"option","description":"file to send the key to","default":"private.key"},"out":{"name":"out","type":"option","description":"output file","default":"certificate_pub.crt"},"name":{"name":"name","type":"option","char":"n","description":"Common Name: typically a host domain name, like www.mysite.com","default":"selfsign.localhost"},"country":{"name":"country","type":"option","char":"c","description":"Country Name"},"state":{"name":"state","type":"option","char":"s","description":"State or Province"},"locality":{"name":"locality","type":"option","char":"l","description":"Locality, or city name"},"organization":{"name":"organization","type":"option","char":"o","description":"Organization name"},"unit":{"name":"unit","type":"option","char":"u","description":"Organizational unit or department"},"days":{"name":"days","type":"option","description":"Number of days the certificate should be valid for. (Max 365)","default":365}},"args":[]},"certificate":{"id":"certificate","description":"Generate or verify a certificate for use with Adobe I/O","pluginName":"@adobe/aio-cli-plugin-certificate","pluginType":"core","aliases":[],"flags":{},"args":[]},"certificate:verify":{"id":"certificate:verify","description":"Verify a certificate for use with Adobe I/O\nVerifies that the certificate is valid, and/or will not expire in [--days] days from now.\n","pluginName":"@adobe/aio-cli-plugin-certificate","pluginType":"core","aliases":[],"flags":{"days":{"name":"days","type":"option","description":"+- is certificate valid in --days"}},"args":[{"name":"file","description":"file path to certificate to verify","required":true}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-certificate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Generate and validate private certs, and public key pairs for use with Adobe IO Console",
|
|
5
5
|
"repository": "adobe/aio-cli-plugin-certificate",
|
|
6
6
|
"homepage": "https://github.com/adobe/aio-cli-plugin-certificate",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@oclif/errors": "^1.1.2",
|
|
11
11
|
"debug": "^4.1.0",
|
|
12
12
|
"fs-extra": "^9.0.0",
|
|
13
|
-
"node-forge": "^
|
|
13
|
+
"node-forge": "^1.3.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@oclif/dev-cli": "^1.21.3",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"license": "Apache-2.0",
|
|
46
46
|
"oclif": {
|
|
47
47
|
"commands": "./src/commands",
|
|
48
|
-
"bin": "
|
|
48
|
+
"bin": "aio",
|
|
49
49
|
"devPlugins": [
|
|
50
50
|
"@oclif/plugin-help"
|
|
51
51
|
],
|
package/src/certificate.js
CHANGED
|
@@ -90,6 +90,13 @@ function generate (commonName, days, /* istanbul ignore next */ attributes = {})
|
|
|
90
90
|
codeSigning: true,
|
|
91
91
|
emailProtection: true,
|
|
92
92
|
timeStamping: true
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'subjectAltName',
|
|
96
|
+
altNames: [{
|
|
97
|
+
type: 2, // DNS
|
|
98
|
+
value: commonName
|
|
99
|
+
}]
|
|
93
100
|
}
|
|
94
101
|
])
|
|
95
102
|
|