This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update doco, add script to make updating certs a little easier
- Loading branch information
1 parent
b2497ce
commit 3b922c2
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const fs = require('fs'); | ||
|
||
if (process.argv.length < 3) { | ||
console.log('Please provide filename and path to encode'); | ||
/* eslint-disable no-process-exit */ | ||
process.exit(1); | ||
/* eslint-enable no-process-exit */ | ||
} | ||
|
||
const cert = fs.readFileSync(process.argv[2]); | ||
|
||
console.log('Original contents: \n\n' + cert); | ||
console.log( | ||
'Base64 encoded (copy this): \n\n' + Buffer.from(cert).toString('base64') | ||
); |