Skip to content

Commit

Permalink
fix ssl certfile env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Oct 20, 2022
1 parent 069fd0c commit c32ef9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useShellEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export default function useShellEnv({installations, pending, pristine}: Options)
if (installation.pkg.project === 'openssl.org') {
vars.SSL_CERT_FILE ??= []
vars.SSL_CERT_FILE.compact_unshift(installation.path.join("ssl/cert.pem").compact()?.string)
// this is a single file, so we assume the first
// valid entry is correct
vars.SSL_CERT_FILE = vars.SSL_CERT_FILE.slice(0, 1)
}
}

Expand Down

0 comments on commit c32ef9c

Please sign in to comment.