You can export the certificate using the Windows Certificate Manager. You need to export the emulator certificate to successfully use the emulator endpoint from languages and runtime environments that do not integrate with the Windows Certificate Store. Export the Azure Cosmos DB TLS/SSL certificate You can read more about the emulator in Use the Azure Cosmos DB Emulator for development and testing.
This article demonstrates how to export the TLS/SSL certificates for use in different languages and runtime environments that do not integrate with the Windows Certificate Store. For example, Java uses its own certificate store, Python uses socket wrappers, and Node.js uses tlsSocket. Other languages have their own method of managing and using certificates. NET language and runtime uses the Windows Certificate Store to securely connect to the Azure Cosmos DB local emulator when the application is run on a Windows OS host. When you use the emulator to develop apps in different languages such as Java, Python, or Node.js, you need to export the emulator certificate and import it into the required certificate store. The certificate you want to export is the connection certificate with the friendly name "DocumentDBEmulatorCertificate". One of them is used to connect to the local emulator and the other is used to manage default encryption of the emulator data within the emulator. Azure Cosmos DB Emulator supports only secure communication through TLS connections.Ĭertificates in the Azure Cosmos DB local emulator are generated the first time you run the emulator. The Azure Cosmos DB Emulator provides a local environment that emulates the Azure Cosmos DB service for development purposes.