question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect over https to Azurite fails with RemoteCertificateNameMismatch

See original GitHub issue

OS: 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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bluewwcommented, Mar 23, 2022

@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.

0reactions
bluewwcommented, Mar 24, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception when using Azurite HTTPS with Storage Explorer
Start Azurite with cert: azurite --oauth basic --cert c:\temp\127.0.0.1.pem --key c:\temp\127.0.0.1-key.pem. Open Storage Explorer.
Read more >
How do you run Azurite with oauth and a self signed certificate?
I ended up using the docker image specified here. I then had to specify --oauth basic as an additional argument at the end....
Read more >
Use Azurite emulator for local Azure Storage development
Connect to Azurite using HTTP. In Storage Explorer, connect to Azurite by following these steps: Select the Manage Accounts icon; Select Add an ......
Read more >
Use HTTPS and DefaultAzureCredential with Azurite for Local ...
The current problem is that Azurite doesn't support HTTP or Token based authentication, which the new Azure Identity DefaultAzureCredential ...
Read more >
Azurite V3 - npm
An open source Azure Storage API compatible server. Latest version: 3.20.1, last published: 2 days ago. Start using azurite in your project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found