Created
March 23, 2021 15:22
-
-
Save FloStar3000/79ebaf9e24ed1b57fd385463010051d5 to your computer and use it in GitHub Desktop.
Revisions
-
FloStar3000 created this gist
Mar 23, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ // use exported ca root cert from browser const rawCert = fs.readFileSync('certfile','utf-8') const lines = rawCert.split('\r\n') const linesFormatted = lines.map(line=>`\"${line}\\n\" \\`) // fs.writeFileSync('cert.txt',linesFormatted.join('\n'))