Skip to content

Commit

Permalink
=fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohameedsherif committed Apr 30, 2024
1 parent 2921acf commit 3044a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import crypto from 'node:crypto'
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import { log, runCommand } from '@stacksjs/cli'
import { log, runCommand, runCommands } from '@stacksjs/cli'
import forge, { pki, tls } from 'node-forge'
import { resolveConfig } from './config'
import type { GenerateCertOptions } from './types'
Expand Down Expand Up @@ -80,7 +80,7 @@ export async function addCertToSystemTrustStore(cert: string, options?: AddCertO
await runCommand(`certutil -enterprise -f -v -AddStore "Root" ${certPath}`)
else if (platform === 'linux') // Linux (This might vary based on the distro)
// for Ubuntu/Debian based systems
await runCommand(`sudo cp ${certPath} /usr/local/share/ca-certificates/`) && runCommand(`sudo update-ca-certificates`)
await runCommands([`sudo cp ${certPath} /usr/local/share/ca-certificates/`, `sudo update-ca-certificates`])
else
throw new Error(`Unsupported platform: ${platform}`)
return certPath
Expand Down

0 comments on commit 3044a9c

Please sign in to comment.