JuliaLang / JuliaLang/NetworkOptions.jl

SSL_CERT_{DIR, FILE} handling is incorrect

Open
#41 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
13
Forks
18
PR merge metrics
No merged PRs in 30d

Description

The way these are used is that *both* variables apply and add root certificates. Moreover, these variables are delimiter-separated lists, so the current API convention of checking `isdir` on the result to determine whether to treat it as a file or directory is broken. My recommendation would be to add a separate API function `ca_root_locations()::Union{Nothing, Tuple{Vector{String}, Vector{String}}}` that gives a list of both files and directories to search and have the current `ca_roots` API fall back to picking the first of these (prioritizing files over directories) for backwards compatibility.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.