Skip to content

System Cert Store

Spice
import "std/net/system-cert-store";

Functions

addSystemCertificates

Spice
public f<bool> addSystemCertificates(SslCtx ctx)

Adds the certificates of the certificate store of the operating system to the trust store of a context. This operating system keeps them in files, that OpenSSL reads by itself (see sslCtxSetDefaultVerifyPaths), so it adds none.

Parameters

Name Type Description
ctx SslCtx Context, whose trust store to extend

Returns: bool — Whether certificates were added, always false here