Asp.Net 6 配置信任Apple Root CA
Docker版本
容器镜像:mcr.microsoft.com/dotnet/aspnet:6.0
关联卷:./AppleIncRootCertificate.pem:/etc/ssl/certs/AppleIncRootCertificate.pem
k8s版本
容器镜像:mcr.microsoft.com/dotnet/aspnet:6.0
存储挂载采用HostPath
path:xxx/publish
type:Directory
数据卷配置如下
挂载1
容器内路径
/app
subPath为空
挂载2
容器内路径
/etc/ssl/certs/AppleIncRootCertificate.pem
subPath为Certs/AppleIncRootCertificate.crt
Certs
为xxx/publish
下的文件夹,存放了证书,并设置为较新则复制