Open starbelly opened 2 weeks ago
P.S. @IngelaAndin I can of course send up a PR for either or, but I wanted to make sure OTP team would accept it first.
Please do, I think we would accept either or, with some motivation.
I have closed one issue report about this on Darwin before, but when I asked about some motivation I got a link to a random old forum post.
@dgud I will open up two PRs, first the one to by default load both keychains, then a second for the ability to load via binary, as I do believe this would be quite useful.
Is your feature request related to a problem? Please describe. Currently,
pubkey_os_cacerts
will only loadSystemRootCertificates.keychain
via theexport
tool on mac os. This is reasonable, however many companies use an internal CA (or multiple) and install related certificates inSystem.keychain
. It would be a nice to have, to export and load both, to save people time and energy when it comes to figuring out why a tls error occurs, whenopenssl
,curl
, etc. work fine.Describe alternatives you've considered At the moment, when the environment is darwin I export both, write the contents out to a file, and load said file. This works fine. As a better alternative, it would be nice to have
public_key:load/1
take either a binary or a file name (as is the case today) to save a write to the file system.Additional context None.