Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: make sure to read certs as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Sep 3, 2021
1 parent 3b5c28c commit 7a56d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/jitp/createDeviceCertificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const createDeviceCertificate = async ({

const certWithCa = (
await Promise.all([
fs.readFile(deviceFiles.cert),
fs.readFile(caFiles.cert),
fs.readFile(deviceFiles.cert, 'utf-8'),
fs.readFile(caFiles.cert, 'utf-8'),
])
).join(os.EOL)

Expand Down

0 comments on commit 7a56d69

Please sign in to comment.