<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:49 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2533] Can&apos;t Connect MongoDB With SSL in Azure machine with another MVC application in Azure</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2533</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;m having problem in connecting MongoDB which is configured using SSL. I have MongoDB enterprise server in Azure virtual machine which has the following configuration.&lt;br/&gt;
&#160;{{net:bindIp: 0.0.0.0port: 27017ssl:CAFile: &apos;C:\openssl-0.9.8h-1-bin\bin\rCA.pem&apos;PEMKeyFile: &apos;C:\openssl-0.9.8h-1-bin\bin\rser.pem&apos;    allowConnectionsWithoutCertificates: false    allowInvalidHostnames: true    mode: requireSSL&lt;br/&gt;
storage:    dbPath: &apos;C:\data\db&apos;}}&lt;/p&gt;

&lt;p&gt;I have a C# sample to connect mongodb with certificate data passed as byte array.&lt;br/&gt;
&#160;{{MongoClientSettings settings = new MongoClientSettings&lt;/p&gt;
{Server = new MongoServerAddress(&quot;mongo_azure_host&quot;, 27017),UseSsl = true,RetryWrites = true}
&lt;p&gt;;        settings.VerifySslCertificate = false;var SslCertificateData = FilePathHelper.ReadFile(Server, mySslClientCertificate);var certificate = new X509Certificate2(SslCertificateData, &quot;pwd&quot;);            settings.SslSettings = new SslSettings(){ClientCertificates = new[] { certificate }};}MongoClient mongoClient = new MongoClient(settings);        mongoClient.GetServer().Connect();}}&lt;/p&gt;

&lt;p&gt;This works fine if the sample is in my local environment. But if I pubish the same in Azure web app and tried to connect, it throws the following exception&lt;/p&gt;

&lt;p&gt;&lt;b&gt;system.componentmodel.win32exception:&lt;/b&gt;&#160;the credentials supplied to the package were not recognized&lt;/p&gt;</description>
                <environment>Microsoft Azure windows server 2012</environment>
        <key id="705596">CSHARP-2533</key>
            <summary>Can&apos;t Connect MongoDB With SSL in Azure machine with another MVC application in Azure</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="manikandan.kumaresan">manikandan</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Feb 2019 04:54:31 +0000</created>
                <updated>Mon, 4 Mar 2019 20:15:57 +0000</updated>
                            <resolved>Mon, 4 Mar 2019 20:15:02 +0000</resolved>
                                    <version>2.4.3</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2169913" author="ian@10gen.com" created="Mon, 4 Mar 2019 20:14:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=manikandan.kumaresan&quot; class=&quot;user-hover&quot; rel=&quot;manikandan.kumaresan&quot;&gt;manikandan.kumaresan&lt;/a&gt; this does not seem like a driver bug but rather TLS configuration error.&lt;/p&gt;

&lt;p&gt;Just to let you know this project is for .NET driver bugs or feature requests. The best place for questions regarding MongoDB usage or the .NET driver specifics is the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailinglist&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stackoverflow&lt;/a&gt; as you will reach a broader audience there.  If your business requires an answer from MongoDB within a time frame then we do offer &lt;a href=&quot;https://www.mongodb.com/download-center/enterprise&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;production support&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10720">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="705598">CSHARP-2534</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="705600">CSHARP-2535</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huemo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>