pubkey_os_cacerts:get()
fails when no CA certs are installed
#7321
Labels
bug
Issue is reported as a bug
pubkey_os_cacerts:get()
fails when no CA certs are installed
#7321
Describe the bug
pubkey_os_cacerts:get()
fails with a badmatch if there are no CA certs installed on the operating system level (which may happen, especially in containerized environments).To Reproduce
Expected behavior
I'd expect the function to return an empty list. It'd like mean that, given no CA certs were found, the request will later fail with a peer verification failure, but that feels like the correct API to handle such situations.
Affected versions
Verified on OTP 25.3 and OTP26.
The text was updated successfully, but these errors were encountered: