Skip to content

Commit

Permalink
feat: add root CA setup versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Apr 28, 2017
1 parent 9fd27c5 commit 6c80805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/root-authority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ function generateOpenSSLConfFiles() {
writeFileSync(opensslConfPath, confTemplate);
writeFileSync(configPath('index.txt'), '');
writeFileSync(configPath('serial'), '01');
// This version number lets us write code in the future that intelligently upgrades an existing
// devcert installation. This "ca-version" is independent of the devcert package version, and
// tracks changes to the root certificate setup only.
writeFileSync(configPath('devcert-ca-version'), '1');
}

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

0 comments on commit 6c80805

Please sign in to comment.