Documentation
¶
Overview ¶
Package trust builds the sandbox's CA bundle: the system roots plus the egress gateway's interception CA, written to the writable trust store that SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE and GIT_SSL_CAINFO point at.
Index ¶
Constants ¶
const DefaultSystemBundle = "/etc/ssl/certs/ca-certificates.crt"
DefaultSystemBundle is Debian's system bundle.
const JavaStorePassword = "changeit"
JavaStorePassword is the JDK's default cacerts password.
Variables ¶
var DefaultEgressCAGlobs = []string{"/run/ate/egress-trust-bundle/*.pem", "/var/run/ate/egress-trust-bundle/*.pem"}
DefaultEgressCAGlobs are where Substrate projects the egress trust bundle.
var EnvVars = []string{"SSL_CERT_FILE", "NODE_EXTRA_CA_CERTS", "REQUESTS_CA_BUNDLE", "GIT_SSL_CAINFO", "CURL_CA_BUNDLE", "AWS_CA_BUNDLE"}
EnvVars are the variables that must point at the bundle.
Functions ¶
func Build ¶
Build writes system + extra certificates to out (replacing a symlink with a file) and returns the number of extra certificates added. Duplicate certificates are written once.
func Certificates ¶
Certificates returns the DER certificates in the PEM files matched by globs.
func ImportJava ¶
ImportJava adds certs to a Java truststore (the image's writable java-cacerts, which the JDK's cacerts links to) with keytool. Certificates already present (by alias) are skipped. It returns how many were imported.
Types ¶
This section is empty.