Cosmosdb acquiring SSL Certificate

Mert Pehlivan 0 Reputation points
2024-03-25T13:23:04.3+00:00

Hi

I am using Cosmosdb with mongodb API. By default SSL set to true. I need to download SSL CA certificate. However, I couldn't find any source to download it.

How can I retrieve SSL CA certificate for my CosmosDB?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,520 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,775 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 18,661 Reputation points
    2024-03-25T16:13:01.28+00:00

    Correct me if I am wrong but you generally won't find a specific cownload option for the certificate directly from Azure. This is because Cosmos DB uses SSL/TLS to secure data in transit, and the connection uses the certificates trusted by the underlying system or development framework you're using.

    Why ? Just because most client libraries and development environments are configured to trust a set of well-known CA certificates that are included with the operating system or framework. For Windows Server, this means the CA certificates trusted by Windows should automatically be trusted by your application, assuming you're using standard libraries that rely on the system CA store.

    If you mean exporting the certificate here is an old thread :

    https://stackoverflow.com/questions/77808551/cosmos-db-emulator-container-cant-export-certificate

    0 comments No comments

  2. GeethaThatipatri-MSFT 29,007 Reputation points Microsoft Employee
    2024-03-26T15:28:35.9333333+00:00

    Hi, @Mert Pehlivan Welcome to Microsoft Q&A thanks for posting your question.

    You can do self SSL or you can download like the SO link provided by @Amira Bedhiafi by the way, .NET automatically downloads the certificate as soon as it connects for the first time.

    Regards

    Geetha

    0 comments No comments