Connect over https to Azurite fails with RemoteCertificateNameMismatch
See original GitHub issueOS: Windows 11 Azurite version: 3.16.0 Env: AspNetCore 6.0
When trying to connect to Azurite which is hosted on https with a dev-cert (pfx) I get the following error:
The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
I have followed the steps from: https://github.com/Azure/Azurite/blob/main/README.md#https-setup but I can’t get it to work.
The connection string I use for the var client = new BlobServiceClient(connectionString);
is
DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=https://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=https://127.0.0.1:10001/devstoreaccount1;TableEndpoint=https://127.0.0.1:10002/devstoreaccount1
Any idea what is going wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@njannink Good to you the scenarios has worked for you. Would you please help to close this issue?
Free free to contact us again if need any further assistance on azurite.
Please make sure the cert is valid, its Common Name, or one of the values in the Subject Alternative Name field, is aligned with the Uri you call Azurite, and the cert root is trusted by the client.