<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:15 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>[JAVA-2865] Add an option to toggle SSL certificate validation</title>
                <link>https://jira.mongodb.org/browse/JAVA-2865</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;At present Java driver does not provide an option for &lt;tt&gt;MongoClient&lt;/tt&gt; or &lt;tt&gt;MongoClientURI&lt;/tt&gt; that could be used to enable/disable SSL certificate validation. This seems inconsistent with other drivers (e.g. &lt;tt&gt;&lt;a href=&quot;http://api.mongodb.com/csharp/current/html/P_MongoDB_Driver_MongoUrl_VerifySslCertificate.htm&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;VerifySslCertificate&lt;/a&gt;&lt;/tt&gt; in C#, &lt;tt&gt;ssl_cert_reqs=ssl.CERT_NONE&lt;/tt&gt; in PyMongo).&lt;/p&gt;

&lt;p&gt;It would be nice to have a similar option implemented in the Java driver.&lt;/p&gt;</description>
                <environment></environment>
        <key id="548005">JAVA-2865</key>
            <summary>Add an option to toggle SSL certificate validation</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dmitry.ryabtsev@mongodb.com">Dmitry Ryabtsev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 May 2018 00:36:04 +0000</created>
                <updated>Thu, 11 Oct 2018 15:43:45 +0000</updated>
                            <resolved>Thu, 11 Oct 2018 15:43:45 +0000</resolved>
                                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1899169" author="jeff.yemin" created="Wed, 23 May 2018 02:26:20 +0000"  >&lt;p&gt;I&apos;m not aware of a way for the driver to do this without altering all other SSL-related settings as well.  Certificate checking is controlled by the TrustManager configured by the SSLContext.  See &lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://docs.oracle.com/javase/9/docs/api/javax/net/ssl/SSLContext.html#init-javax.net.ssl.KeyManager:A-javax.net.ssl.TrustManager:A-java.security.SecureRandom-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;SSLContext#init&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://docs.oracle.com/javase/9/docs/api/javax/net/ssl/X509ExtendedTrustManager.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;X509ExtendedTrustManager&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The driver uses the default SSLContext provided by the JVM via &lt;tt&gt;SSLContext.getDefault()&lt;/tt&gt;, but this is configurable in &lt;tt&gt;MongoClientOptions&lt;/tt&gt; via &lt;tt&gt;MongoClientOptions.Builder#sslContext&lt;/tt&gt;.  Using this options, an application can configure the &lt;tt&gt;SSLContext&lt;/tt&gt;, including the disabling of server certificate checking by the &lt;tt&gt;TrustManager&lt;/tt&gt;.  &lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000asgdrIAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <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|htpr7b:</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>