Skip to content

Commit

Permalink
chore: resolves several issues
Browse files Browse the repository at this point in the history
chore: add support to macOS

chore: add support for windows os and browsers
  • Loading branch information
mohameedsherif authored and chrisbbreuer committed May 15, 2024
1 parent dd3a048 commit 6f7217b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ export async function addCertToSystemTrustStoreAndSaveCerts(

if (platform === 'darwin')
// macOS
await runCommand(`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ${certPath}`)
await runCommand(
`sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ${CAcertPath}`,
)
else if (platform === 'win32')
// Windows

await runCommand(`certutil -f -v -addstore -enterprise Root ${certPath}`)
await runCommand(`certutil -f -v -addstore -enterprise Root ${CAcertPath}`)
else if (platform === 'linux')
// Linux (This might vary based on the distro)
// for Ubuntu/Debian based systems
Expand Down

0 comments on commit 6f7217b

Please sign in to comment.