Skip to content

Commit 6c80805

Browse files
committed
feat: add root CA setup versioning
1 parent 9fd27c5 commit 6c80805

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/root-authority.ts

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ function generateOpenSSLConfFiles() {
6060
writeFileSync(opensslConfPath, confTemplate);
6161
writeFileSync(configPath('index.txt'), '');
6262
writeFileSync(configPath('serial'), '01');
63+
// This version number lets us write code in the future that intelligently upgrades an existing
64+
// devcert installation. This "ca-version" is independent of the devcert package version, and
65+
// tracks changes to the root certificate setup only.
66+
writeFileSync(configPath('devcert-ca-version'), '1');
6367
}
6468

6569
// macOS is pretty simple - just add the certificate to the system keychain, and most applications

0 commit comments

Comments
 (0)