Skip to content

Commit

Permalink
chore: ca cert from base64
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Oct 23, 2023
1 parent b304266 commit 0d8c267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const loadConfig = () => {
? process.env.CA_CERT
? {
rejectUnauthorized: true,
ca: process.env.CA_CERT,
// base64-encoded CA cert stored in env var
ca: Buffer.from(process.env.CA_CERT, 'base64').toString('utf-8'),
}
: {
rejectUnauthorized: false,
Expand Down

0 comments on commit 0d8c267

Please sign in to comment.