Skip to content

Commit

Permalink
chore: more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Sep 24, 2024
1 parent 048e2cf commit 1c665df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@stacksjs/tlsx",
"type": "module",
"version": "0.0.4",
"description": "A TLS library with automation.",
"description": "A TLS/HTTPS library with automation.",
"author": "Chris Breuer <chris@stacksjs.org>",
"license": "MIT",
"homepage": "https://github.com/stacksjs/tlsx#readme",
Expand All @@ -15,7 +15,9 @@
},
"keywords": [
"tls",
"https",
"ssl",
"security",
"https",
"cryptography",
"x509",
Expand Down Expand Up @@ -73,11 +75,11 @@
},
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@stacksjs/biome-config": "^0.1.4",
"@stacksjs/development": "^0.64.6",
"@types/bun": "^1.1.10",
"@types/node-forge": "^1.3.11",
"bun-plugin-dts-auto": "^0.11.1",
"sslx": "^0.0.4",
"vitepress": "^1.3.4"
},
"simple-git-hooks": {
Expand Down
10 changes: 5 additions & 5 deletions src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const getCANotAfter = (notBefore: any) => {

const DEFAULT_C = 'US'
const DEFAULT_ST = 'California'
const DEFAULT_L = 'Melbourne'
const DEFAULT_O = config.ssl?.organizationName
const DEFAULT_L = 'Playa Vista'
const DEFAULT_O = config?.ssl?.organizationName ?? 'Stacks.js'

// Generate a new Root CA Certificate
export async function createRootCA() {
Expand All @@ -71,10 +71,10 @@ export async function createRootCA() {
shortName: 'L',
value: DEFAULT_L,
},

{
shortName: 'CN',
value: config?.ssl?.organizationName,
value: DEFAULT_O,
},
]

Expand Down Expand Up @@ -154,7 +154,7 @@ export async function generateCert(options?: GenerateCertOptions) {

{
shortName: 'CN',
value: config?.ssl?.organizationName,
value: DEFAULT_O,
},
]

Expand Down

0 comments on commit 1c665df

Please sign in to comment.