Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureServerTLS ¶ added in v0.70.0
ConfigureServerTLS loads the certificate/key pair at certFilePath/ keyFilePath and installs it on server's TLSConfig (creating one via ServerConfig if server.TLSConfig is nil), applying the shared minimum TLS version floor. It is the single keypair-loading implementation shared by every built-in API provider (Blockfrost, Mesh, UTxORPC), replacing what was previously duplicated tls.LoadX509KeyPair-plus-floor logic per provider. Callers must still call server.ServeTLS (not Serve) after this returns successfully -- this only prepares the config, it does not decide whether the caller wants a TLS listener at all (see EffectiveTLS.Enabled in package apiconfig).
func LoadClientCAPool ¶ added in v0.69.0
LoadClientCAPool reads a PEM-encoded CA bundle from path and returns an x509.CertPool built from it, for use as a tls.Config's ClientCAs — the trust anchor against which a server verifies client (mTLS) certificates. Returns an error if the file can't be read or contains no valid PEM certificates, rather than silently returning an empty (trust-nobody) pool.
Types ¶
This section is empty.