Skip to content

Commit 1733a05

Browse files
committed
Update Mockttp for more correct certificate generation
1 parent 5c58976 commit 1733a05

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

package-lock.json

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"lookpath": "^1.2.1",
6767
"mime-types": "^2.1.27",
6868
"mobx": "^6.3.5",
69-
"mockttp": "^3.2.0",
69+
"mockttp": "^3.2.2",
7070
"node-abort-controller": "^3.0.1",
7171
"node-fetch": "^2.6.1",
7272
"node-forge": "^1.3.0",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ async function generateHTTPSConfig(configPath: string) {
4040
// Cert doesn't exist, or is too close/past expiry. Generate a new one:
4141

4242
const newCertPair = await generateCACertificate({
43-
commonName: APP_NAME + ' CA'
43+
commonName: APP_NAME + ' CA',
44+
organizationName: APP_NAME + ' CA'
4445
});
4546

4647
return Promise.all([

0 commit comments

Comments
 (0)