@adobe/aio-cli-plugin-certificate 2.0.1 → 2.1.0
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
CHANGED
|
@@ -42,7 +42,7 @@ DESCRIPTION
|
|
|
42
42
|
Generate, fingerprint, or verify a certificate for use with Adobe I/O
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
_See code: [src/commands/certificate/index.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.0
|
|
45
|
+
_See code: [src/commands/certificate/index.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.1.0/src/commands/certificate/index.js)_
|
|
46
46
|
|
|
47
47
|
## `aio certificate fingerprint FILE`
|
|
48
48
|
|
|
@@ -59,7 +59,7 @@ DESCRIPTION
|
|
|
59
59
|
Compute the fingerprint of a public key certificate for use with Adobe I/O
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
_See code: [src/commands/certificate/fingerprint.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.0
|
|
62
|
+
_See code: [src/commands/certificate/fingerprint.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.1.0/src/commands/certificate/fingerprint.js)_
|
|
63
63
|
|
|
64
64
|
## `aio certificate generate`
|
|
65
65
|
|
|
@@ -78,9 +78,9 @@ FLAGS
|
|
|
78
78
|
-o, --organization=<value> Organization name
|
|
79
79
|
-s, --state=<value> State or Province
|
|
80
80
|
-u, --unit=<value> Organizational unit or department
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
--days=<value> [default: 365] Number of days the certificate should be valid for. (Max 365)
|
|
82
|
+
--keyout=<value> [default: private.key] file to send the key to
|
|
83
|
+
--out=<value> [default: certificate_pub.crt] output file
|
|
84
84
|
|
|
85
85
|
DESCRIPTION
|
|
86
86
|
Generate a new private/public key pair
|
|
@@ -88,7 +88,7 @@ DESCRIPTION
|
|
|
88
88
|
services.
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
_See code: [src/commands/certificate/generate.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.0
|
|
91
|
+
_See code: [src/commands/certificate/generate.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.1.0/src/commands/certificate/generate.js)_
|
|
92
92
|
|
|
93
93
|
## `aio certificate verify FILE`
|
|
94
94
|
|
|
@@ -109,7 +109,7 @@ DESCRIPTION
|
|
|
109
109
|
Verifies that the certificate is valid, and/or will not expire in [--days] days from now.
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
_See code: [src/commands/certificate/verify.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.0
|
|
112
|
+
_See code: [src/commands/certificate/verify.js](https://github.com/adobe/aio-cli-plugin-certificate/blob/2.1.0/src/commands/certificate/verify.js)_
|
|
113
113
|
<!-- commandsstop -->
|
|
114
114
|
|
|
115
115
|
## Contributing
|
package/package.json
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-certificate",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Generate and validate private certificates, 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",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^
|
|
8
|
+
"@oclif/core": "^4.9.0",
|
|
9
9
|
"debug": "^4.3.3",
|
|
10
10
|
"fs-extra": "^9.0.0",
|
|
11
11
|
"node-forge": "^1.3.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@adobe/eslint-config-aio-lib-config": "^
|
|
15
|
-
"eslint": "^
|
|
16
|
-
"eslint-
|
|
17
|
-
"eslint-
|
|
18
|
-
"eslint-plugin-import": "^2.29.1",
|
|
19
|
-
"eslint-plugin-jest": "^27.6.1",
|
|
20
|
-
"eslint-plugin-jsdoc": "^42.0.0",
|
|
21
|
-
"eslint-plugin-n": "^15.7.0",
|
|
22
|
-
"eslint-plugin-node": "^11.1.0",
|
|
23
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
14
|
+
"@adobe/eslint-config-aio-lib-config": "^5.0.0",
|
|
15
|
+
"eslint": "^9",
|
|
16
|
+
"eslint-plugin-jest": "^29",
|
|
17
|
+
"eslint-plugin-jsdoc": "^48",
|
|
24
18
|
"jest": "^29",
|
|
25
|
-
"
|
|
19
|
+
"neostandard": "^0",
|
|
20
|
+
"oclif": "^4.0.0",
|
|
26
21
|
"stdout-stderr": "^0.1.9"
|
|
27
22
|
},
|
|
28
23
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
24
|
+
"node": ">=20"
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"/oclif.manifest.json",
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
const { Command } = require('@oclif/core')
|
|
13
|
+
const { Command, Args } = require('@oclif/core')
|
|
14
14
|
const fs = require('fs-extra')
|
|
15
15
|
const debug = require('debug')('aio-cli-plugin-certificate:fingerprint')
|
|
16
16
|
|
|
@@ -31,7 +31,6 @@ class FingerprintCommand extends Command {
|
|
|
31
31
|
const res = cert.fingerprint(pemCert)
|
|
32
32
|
|
|
33
33
|
this.log(res.certificateFingerprint)
|
|
34
|
-
return res.certificateFingerprint
|
|
35
34
|
} catch (err) {
|
|
36
35
|
debug('error fingerprinting certificate: ', err)
|
|
37
36
|
this.error(err.message)
|
|
@@ -41,12 +40,11 @@ class FingerprintCommand extends Command {
|
|
|
41
40
|
|
|
42
41
|
FingerprintCommand.description = 'Compute the fingerprint of a public key certificate for use with Adobe I/O'
|
|
43
42
|
|
|
44
|
-
FingerprintCommand.args =
|
|
45
|
-
{
|
|
46
|
-
name: 'file',
|
|
43
|
+
FingerprintCommand.args = {
|
|
44
|
+
file: Args.string({
|
|
47
45
|
required: true,
|
|
48
46
|
description: 'file path to certificate to fingerprint'
|
|
49
|
-
}
|
|
50
|
-
|
|
47
|
+
})
|
|
48
|
+
}
|
|
51
49
|
|
|
52
50
|
module.exports = FingerprintCommand
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
const { Command, Flags } = require('@oclif/core')
|
|
13
|
+
const { Command, Flags, Args } = require('@oclif/core')
|
|
14
14
|
const fs = require('fs-extra')
|
|
15
15
|
const debug = require('debug')('aio-cli-plugin-certificate:verify')
|
|
16
16
|
|
|
@@ -70,12 +70,11 @@ VerifyCommand.flags = {
|
|
|
70
70
|
})
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
VerifyCommand.args =
|
|
74
|
-
{
|
|
75
|
-
name: 'file',
|
|
73
|
+
VerifyCommand.args = {
|
|
74
|
+
file: Args.string({
|
|
76
75
|
required: true,
|
|
77
76
|
description: 'file path to certificate to verify'
|
|
78
|
-
}
|
|
79
|
-
|
|
77
|
+
})
|
|
78
|
+
}
|
|
80
79
|
|
|
81
80
|
module.exports = VerifyCommand
|
package/oclif.manifest.json
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0.1",
|
|
3
|
-
"commands": {
|
|
4
|
-
"certificate:fingerprint": {
|
|
5
|
-
"id": "certificate:fingerprint",
|
|
6
|
-
"description": "Compute the fingerprint of a public key certificate for use with Adobe I/O",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"pluginName": "@adobe/aio-cli-plugin-certificate",
|
|
9
|
-
"pluginAlias": "@adobe/aio-cli-plugin-certificate",
|
|
10
|
-
"pluginType": "core",
|
|
11
|
-
"aliases": [],
|
|
12
|
-
"flags": {},
|
|
13
|
-
"args": {
|
|
14
|
-
"file": {
|
|
15
|
-
"name": "file",
|
|
16
|
-
"description": "file path to certificate to fingerprint",
|
|
17
|
-
"required": true
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"certificate:generate": {
|
|
22
|
-
"id": "certificate:generate",
|
|
23
|
-
"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",
|
|
24
|
-
"strict": true,
|
|
25
|
-
"pluginName": "@adobe/aio-cli-plugin-certificate",
|
|
26
|
-
"pluginAlias": "@adobe/aio-cli-plugin-certificate",
|
|
27
|
-
"pluginType": "core",
|
|
28
|
-
"aliases": [],
|
|
29
|
-
"flags": {
|
|
30
|
-
"keyout": {
|
|
31
|
-
"name": "keyout",
|
|
32
|
-
"type": "option",
|
|
33
|
-
"description": "file to send the key to",
|
|
34
|
-
"multiple": false,
|
|
35
|
-
"default": "private.key"
|
|
36
|
-
},
|
|
37
|
-
"out": {
|
|
38
|
-
"name": "out",
|
|
39
|
-
"type": "option",
|
|
40
|
-
"description": "output file",
|
|
41
|
-
"multiple": false,
|
|
42
|
-
"default": "certificate_pub.crt"
|
|
43
|
-
},
|
|
44
|
-
"name": {
|
|
45
|
-
"name": "name",
|
|
46
|
-
"type": "option",
|
|
47
|
-
"char": "n",
|
|
48
|
-
"description": "Common Name: typically a host domain name, like www.mysite.com",
|
|
49
|
-
"multiple": false,
|
|
50
|
-
"default": "selfsign.localhost"
|
|
51
|
-
},
|
|
52
|
-
"country": {
|
|
53
|
-
"name": "country",
|
|
54
|
-
"type": "option",
|
|
55
|
-
"char": "c",
|
|
56
|
-
"description": "Country Name",
|
|
57
|
-
"multiple": false
|
|
58
|
-
},
|
|
59
|
-
"state": {
|
|
60
|
-
"name": "state",
|
|
61
|
-
"type": "option",
|
|
62
|
-
"char": "s",
|
|
63
|
-
"description": "State or Province",
|
|
64
|
-
"multiple": false
|
|
65
|
-
},
|
|
66
|
-
"locality": {
|
|
67
|
-
"name": "locality",
|
|
68
|
-
"type": "option",
|
|
69
|
-
"char": "l",
|
|
70
|
-
"description": "Locality, or city name",
|
|
71
|
-
"multiple": false
|
|
72
|
-
},
|
|
73
|
-
"organization": {
|
|
74
|
-
"name": "organization",
|
|
75
|
-
"type": "option",
|
|
76
|
-
"char": "o",
|
|
77
|
-
"description": "Organization name",
|
|
78
|
-
"multiple": false
|
|
79
|
-
},
|
|
80
|
-
"unit": {
|
|
81
|
-
"name": "unit",
|
|
82
|
-
"type": "option",
|
|
83
|
-
"char": "u",
|
|
84
|
-
"description": "Organizational unit or department",
|
|
85
|
-
"multiple": false
|
|
86
|
-
},
|
|
87
|
-
"days": {
|
|
88
|
-
"name": "days",
|
|
89
|
-
"type": "option",
|
|
90
|
-
"description": "Number of days the certificate should be valid for. (Max 365)",
|
|
91
|
-
"multiple": false,
|
|
92
|
-
"default": 365
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"args": {}
|
|
96
|
-
},
|
|
97
|
-
"certificate": {
|
|
98
|
-
"id": "certificate",
|
|
99
|
-
"description": "Generate, fingerprint, or verify a certificate for use with Adobe I/O",
|
|
100
|
-
"strict": true,
|
|
101
|
-
"pluginName": "@adobe/aio-cli-plugin-certificate",
|
|
102
|
-
"pluginAlias": "@adobe/aio-cli-plugin-certificate",
|
|
103
|
-
"pluginType": "core",
|
|
104
|
-
"aliases": [],
|
|
105
|
-
"flags": {},
|
|
106
|
-
"args": {}
|
|
107
|
-
},
|
|
108
|
-
"certificate:verify": {
|
|
109
|
-
"id": "certificate:verify",
|
|
110
|
-
"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",
|
|
111
|
-
"strict": true,
|
|
112
|
-
"pluginName": "@adobe/aio-cli-plugin-certificate",
|
|
113
|
-
"pluginAlias": "@adobe/aio-cli-plugin-certificate",
|
|
114
|
-
"pluginType": "core",
|
|
115
|
-
"aliases": [],
|
|
116
|
-
"flags": {
|
|
117
|
-
"days": {
|
|
118
|
-
"name": "days",
|
|
119
|
-
"type": "option",
|
|
120
|
-
"description": "+- is certificate valid in --days",
|
|
121
|
-
"multiple": false
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"args": {
|
|
125
|
-
"file": {
|
|
126
|
-
"name": "file",
|
|
127
|
-
"description": "file path to certificate to verify",
|
|
128
|
-
"required": true
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|