Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Mar 8, 2024
1 parent b9cb045 commit 030a8b7
Show file tree
Hide file tree
Showing 5 changed files with 221 additions and 167 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"files": [
"dist",
"scripts",
"src"
],
"scripts": {
Expand Down
35 changes: 0 additions & 35 deletions scripts/add-root-ca.sh

This file was deleted.

8 changes: 5 additions & 3 deletions scripts/generate-keys.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { generateAndSaveCertificates, generateRootCA } from '../src/keys'
import { addRootCA, generateAndSaveCertificates, generateRootCA } from '../src/keys'

// Generate a root key and certificate (self-signed)
generateRootCA()
await generateRootCA()

// Generate a keypair and create an X.509v3 certificate for the domain
generateAndSaveCertificates()
await generateAndSaveCertificates()

await addRootCAToSystemTrust()
Loading

0 comments on commit 030a8b7

Please sign in to comment.