✅ DEV Certificate invalid password for ASP.NET in docker
I'm using docker compose orchestration for my solution containing ASP.NET projects.
I've created a DEV certificate using
The password for the certificate is supposed to be
In the
The path should be correct; however, the password is not working - I get an exception:
When trying to check the certificates password using
Input:
Output: Mac verify error: invalid password?
Might be because I'm using the command incorrectly, but still... in both cases it is incorrect.
What am I doing wrong?
I've created a DEV certificate using
dotnet dev-certs https -t -p changeitThe password for the certificate is supposed to be
changeitIn the
docker-compose-override.yml I've configured the path to the certificate and the password.The path should be correct; however, the password is not working - I get an exception:
System.Security.Cryptography.CryptographicException: 'The certificate data cannot be read with the provided password, the password may be incorrect.'
When trying to check the certificates password using
openssl, I also get an invalid password error.Input:
openssl pkcs12 -in GrpcServer.pfx -nooutOutput: Mac verify error: invalid password?
Might be because I'm using the command incorrectly, but still... in both cases it is incorrect.
What am I doing wrong?