node-pki-signer 0.2.0 → 0.3.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 +1 -1
- package/package.json +14 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Status: early development (0.x): the API may still change. PKIaaS.io runs it in
|
|
|
16
16
|
| `pkcs11: { uri, pin, modulePath }` | pkcs11js, then `openssl dgst` with pkcs11-provider | RSA and ECDSA |
|
|
17
17
|
| `kms: { keyVersion }` | the Google Cloud KMS API | RSA with SHA-256 (tested against a real KMS key) |
|
|
18
18
|
|
|
19
|
-
Non-software signatures are verified against the CA certificate before the certificate is returned. pkcs11js and @google-cloud/kms are optional dependencies, loaded only when needed.
|
|
19
|
+
Non-software signatures are verified against the CA certificate before the certificate is returned. pkcs11js and @google-cloud/kms are optional peer dependencies, loaded only when needed: install them beside this package to sign with PKCS#11 tokens (`npm install pkcs11js`) or Google Cloud KMS (`npm install @google-cloud/kms`). Without them, those keys go to OpenSSL.
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
22
|
const { createSigner } = require('node-pki-signer');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-pki-signer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Fast in-process X.509 signing for PKIaaS.io and IoT HSM: software keys, PKCS#11, Google Cloud KMS, post-quantum, with OpenSSL fallback",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@eslint/js": "10.0.1",
|
|
35
|
+
"@google-cloud/kms": "6.2.1",
|
|
35
36
|
"@types/node": "24.19.0",
|
|
36
37
|
"eslint": "10.11.0",
|
|
37
38
|
"globals": "17.12.0",
|
|
39
|
+
"pkcs11js": "2.1.7",
|
|
38
40
|
"prettier": "3.9.9",
|
|
39
41
|
"typescript": "5.9.3",
|
|
40
42
|
"typescript-eslint": "8.71.0"
|
|
@@ -46,8 +48,16 @@
|
|
|
46
48
|
"asn1js": "3.0.10",
|
|
47
49
|
"node-openssl-cert2": "0.7.34"
|
|
48
50
|
},
|
|
49
|
-
"
|
|
50
|
-
"@google-cloud/kms": "6.2.1",
|
|
51
|
-
"pkcs11js": "2.1.7"
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@google-cloud/kms": "^6.2.1",
|
|
53
|
+
"pkcs11js": "^2.1.7"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@google-cloud/kms": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"pkcs11js": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
52
62
|
}
|
|
53
63
|
}
|