Closed sebastian-adamo closed 2 years ago
Hi @sebastian-adamo, are you sure the same user is being used for the install and list operations?
You can always check manually if the certificate is the in the ~/.dotnet/corefx/cryptography/x509stores/my/
folder.
Hi @yohanb, thanks for the reply. We have determined that the user installing the certificate during container build time is different to the one trying to access it in a .NET application during runtime. As such, I think that this is an issue with Docker.
@sebastian-adamo unless specified otherwise the user should be root.
I have added a .pfx certificate via the tool to a Docker container and it shows that it installs successfully.
However, when I try to list all certificates in said user store in a .NET Core application, the store indicates that there are 0 certificates contained within it.
Could this be an issue with a difference in Linux user on Docker build vs Docker run?