Skip to content

Commit abd6af0

Browse files
chore: Add support for FireFox
1 parent ce1ef5e commit abd6af0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/keys.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ export interface AddCertOptions {
223223
}
224224

225225
export async function addCertToSystemTrustStoreAndSaveCerts(cert: string, CAcert: string, options?: AddCertOptions) {
226-
227226
const certPath = storeCert(cert, options)
228227
const CAcertPath = storeCACert(CAcert, options)
229228

@@ -246,6 +245,8 @@ export async function addCertToSystemTrustStoreAndSaveCerts(cert: string, CAcert
246245

247246
`certutil -d sql:${os.homedir()}/.pki/nssdb -A -t ${args} -n ${DEFAULT_O} -i ${CAcertPath}`,
248247

248+
`certutil -d sql:${os.homedir()}/snap/firefox/common/.mozilla/firefox/3l148raz.default -A -t ${args} -n ${DEFAULT_O} -i ${CAcertPath}`,
249+
249250
`sudo update-ca-certificates`,
250251
])
251252
else throw new Error(`Unsupported platform: ${platform}`)

0 commit comments

Comments
 (0)