haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

On FreeBSD, look for certificates in /usr/local/share/certs/ #23

Closed tomfitzhenry closed 9 years ago

tomfitzhenry commented 10 years ago

FreeBSD's root certificate package, ca_root_nss, installs certificates in /usr/local/share/certs/.

hs-certificate currently only looks in /etc/ssl/certs/, and hence doesn't find the root certificates on FreeBSD.

hs-certificate provides a workaround, to set the environment variable SYSTEM_CERTIFICATE_PATH. This works, but it's a shame to have to do this.

Ideally hs-certificate would search in /usr/local/share/certs/ too, at least on FreeBSD.