Nimony

The road to Nim 3

certstore

nimony/lib/std/crypto/certstore.nim

The operating system's trusted root certificates, as a TrustStore for std/crypto/x509 and std/tls.

TargetSource
Windowsthe ROOT system store (crypt32), plus a cacert.pem next
to the executable or, failing that, on the PATH
POSIXthe first CA bundle file that exists, else the certificate
directories (one certificate per file, c_rehash style)

SSL_CERT_FILE (a PEM bundle) and SSL_CERT_DIR (a directory of PEM files) replace those defaults on every platform, as they do for OpenSSL.

On Windows the ROOT store holds only what has been needed so far: Windows fetches further Microsoft-trusted roots when its own chain engine asks for them. So verifyServerChain, which std/tls uses, lets that engine (CertGetCertificateChain) judge a chain against the system store rather than the roots enumerated here.