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

Certsxxx/publish下的文件夹,存放了证书,并设置为较新则复制

posted @ 2022-08-23 16:16  风轻云断  阅读(58)  评论(0编辑  收藏  举报