node-opcua-pki 6.8.0 → 6.8.2
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/dist/bin/pki.mjs +17 -0
- package/dist/bin/pki.mjs.map +1 -1
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1435,6 +1435,23 @@ var CertificateManager = class _CertificateManager extends EventEmitter {
|
|
|
1435
1435
|
async trustCertificate(certificate) {
|
|
1436
1436
|
await this.#moveCertificate(certificate, "trusted");
|
|
1437
1437
|
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Check whether the trusted certificate store is empty.
|
|
1440
|
+
*
|
|
1441
|
+
* This inspects the in-memory index, which is kept in
|
|
1442
|
+
* sync with the `trusted/certs/` folder by file-system
|
|
1443
|
+
* watchers after {@link initialize} has been called.
|
|
1444
|
+
*/
|
|
1445
|
+
isTrustListEmpty() {
|
|
1446
|
+
return this.#thumbs.trusted.size === 0;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Return the number of certificates currently in the
|
|
1450
|
+
* trusted store.
|
|
1451
|
+
*/
|
|
1452
|
+
getTrustedCertificateCount() {
|
|
1453
|
+
return this.#thumbs.trusted.size;
|
|
1454
|
+
}
|
|
1438
1455
|
/** Path to the rejected certificates folder. */
|
|
1439
1456
|
get rejectedFolder() {
|
|
1440
1457
|
return path6.join(this.rootDir, "rejected");
|