You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback provides access to the certificate collection and allows you to specify command-line arguments required to configure trusted certificates.
182
+
The callback receives an `ExecutableCertificateTrustCallbackAnnotationContext` that provides:
183
+
184
+
-`Certificates`: The `X509Certificate2Collection` of certificates for this resource.
185
+
-`Scope`: The `CertificateTrustScope` of trust for the resource.
186
+
-`CertificateTrustArguments`: Command line arguments required to enable certificate trust.
187
+
-`CertificateBundleArguments`: Command line arguments that will be combined with the path to the custom certificates bundle.
188
+
-`CertificateBundleEnvironment`: Environment variable names that will be set with the path to the custom certificates bundle.
189
+
-`CertificatesDirectoryEnvironment`: Environment variable names that will be set with paths to directories containing CA certificates to trust.
178
190
179
191
### Container resource certificate trust
180
192
@@ -184,26 +196,46 @@ Use `WithContainerCertificateTrustCallback` to customize certificate trust for c
// Override the path to default individual certificates in the container (this is a list of common certificate paths for various Linux distros by default)
190
-
// This should only need to be updated if your container has certificates in non-standard paths
The callback receives a `ContainerCertificateTrustCallbackAnnotationContext` that provides:
228
+
229
+
-`Certificates`: The `X509Certificate2Collection` of certificates for this resource.
230
+
-`Scope`: The `CertificateTrustScope` of trust for the resource.
231
+
-`CustomCertificatesContainerFilePath`: The path in the container where custom certificates will be placed (defaults to `/usr/lib/ssl/aspire`).
232
+
-`DefaultContainerCertificateAuthorityBundlePaths`: List of default certificate bundle files in the container that will be replaced in Override mode.
233
+
-`DefaultContainerCertificatesDirectoryPaths`: List of default certificate directories in the container that will be appended to in Append mode.
234
+
-`CertificateTrustArguments`: Command line arguments required to enable certificate trust.
235
+
-`CertificateBundleArguments`: Command line arguments that will be combined with the path to the custom certificates bundle.
236
+
-`CertificateBundleEnvironment`: Environment variable names that will be set with the path to the custom certificates bundle.
237
+
-`CertificatesDirectoryEnvironment`: Environment variable names that will be set with paths to directories containing CA certificates (defaults include `SSL_CERT_DIR` for OpenSSL compatibility).
238
+
207
239
Default implementations are provided for Node.js, Python, and container resources. Container resources rely on standard OpenSSL configuration options, with default values that support the majority of common Linux distributions. You can override these defaults if necessary.
0 commit comments