@jsenv/https-local 3.2.0 → 3.2.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/package.json
CHANGED
|
@@ -326,13 +326,13 @@ export const uninstallCertificateAuthority = async ({
|
|
|
326
326
|
const rootCertificateCommonName = attributeDescriptionFromAttributeArray(
|
|
327
327
|
rootCertificateForgeObject.subject.attributes,
|
|
328
328
|
).commonName;
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
await removeCertificateFromTrustStores({
|
|
329
|
+
const platformMethods = await importPlatformMethods();
|
|
330
|
+
await platformMethods.executeTrustQuery({
|
|
332
331
|
logger,
|
|
333
|
-
certificate: rootCertificate,
|
|
334
|
-
certificateFileUrl: rootCertificateFileInfo.url,
|
|
335
332
|
certificateCommonName: rootCertificateCommonName,
|
|
333
|
+
certificateFileUrl: rootCertificateFileInfo.url,
|
|
334
|
+
certificate: rootCertificate,
|
|
335
|
+
verb: "REMOVE_TRUST",
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
filesToRemove.push(rootCertificateFileInfo.url);
|
package/src/https_local_cli.mjs
CHANGED
|
@@ -58,10 +58,10 @@ const commandHandlers = {
|
|
|
58
58
|
tryToUpdatesHostsFile: true,
|
|
59
59
|
});
|
|
60
60
|
},
|
|
61
|
-
install: async ({
|
|
61
|
+
install: async ({ trust }) => {
|
|
62
62
|
await installCertificateAuthority({
|
|
63
|
-
tryToTrust,
|
|
64
|
-
NSSDynamicInstall:
|
|
63
|
+
tryToTrust: trust,
|
|
64
|
+
NSSDynamicInstall: trust,
|
|
65
65
|
});
|
|
66
66
|
},
|
|
67
67
|
uninstall: async () => {
|