Skip to content

Commit

Permalink
chore: Add support for FireFox
Browse files Browse the repository at this point in the history
  • Loading branch information
mohameedsherif committed May 14, 2024
1 parent ce1ef5e commit abd6af0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ export interface AddCertOptions {
}

export async function addCertToSystemTrustStoreAndSaveCerts(cert: string, CAcert: string, options?: AddCertOptions) {

const certPath = storeCert(cert, options)
const CAcertPath = storeCACert(CAcert, options)

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

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

`certutil -d sql:${os.homedir()}/snap/firefox/common/.mozilla/firefox/3l148raz.default -A -t ${args} -n ${DEFAULT_O} -i ${CAcertPath}`,

`sudo update-ca-certificates`,
])
else throw new Error(`Unsupported platform: ${platform}`)
Expand Down

0 comments on commit abd6af0

Please sign in to comment.