<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:24 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-2933] Mongo DB Java Driver SSL</title>
                <link>https://jira.mongodb.org/browse/JAVA-2933</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;I am looking for help for SSL connection to mongo db through Java driver.&lt;/p&gt;

&lt;p&gt;I am able to connect to Mongo with SSL using key and cert and steps mentioned in mongodb documentation.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;JVM properties&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.trustStore&quot;, &amp;lt;keystorePath&amp;gt;);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.trustStorePassword&quot;, &amp;lt;*******&amp;gt;);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.trustStoreType&quot;, &quot;JKS&quot;);&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.keyStore&quot;, &amp;lt;keystorePath&amp;gt;);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.keyStorePassword&quot;, &amp;lt;*******&amp;gt;);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; System.setProperty(&quot;javax.net.ssl.keyStoreType&quot;, &quot;JKS&quot;);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;options = MongoClientOptions.builder().codecRegistry(codecRegistry).connectionsPerHost(100)&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; .connectTimeout(5000).readPreference(ReadPreference.primary())&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; .threadsAllowedToBlockForConnectionMultiplier(10).maxConnectionIdleTime(600000).sslEnabled(true)&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; .sslInvalidHostNameAllowed(true).build();&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;But I am facing other problems with it, I have other functionality dependent on different certificate not working, seems setting above system property overwritten JVM cert keystore with mongodb certificate, So only mongo SSL is working, all other functionality need SSL connection failing.&lt;/p&gt;

&lt;p&gt;Is this correct understanding or I am doing wrong. In case its overwriting what should be the solution.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Siddharth Mehta&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="589728">JAVA-2933</key>
            <summary>Mongo DB Java Driver SSL</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="simehta@cisco.com">Siddharth Mehta</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2018 05:25:15 +0000</created>
                <updated>Tue, 16 Nov 2021 16:31:25 +0000</updated>
                            <resolved>Fri, 17 Aug 2018 12:34:00 +0000</resolved>
                                    <version>3.5.0</version>
                                                    <component>Configuration</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1978603" author="phil.jordan" created="Fri, 17 Aug 2018 12:33:03 +0000"  >&lt;p&gt;Hi Siddharth Mehta,&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;We noticed that you created this issue in the Java Driver Jira project, and have moved it to the [Support Portal|&lt;a href=&quot;https://support.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://support.mongodb.com&lt;/a&gt;] as you have a MongoDB Subscription. For all future questions, please raise cases through the Support Portal. This will ensure that your case is responded to as quickly as possible and SLAs are triggered.&lt;/p&gt;

&lt;p&gt;The Support Portal will also ensure your question will remain private and your coworkers will be able to follow progress as our Support team works with you. We are looking into your questions on &lt;a href=&quot;https://support.mongodb.com/case/00513400&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;00513400#&lt;/a&gt;&#160;now and will respond on the case shortly.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thank you and have a nice day!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Phil&lt;/p&gt;</comment>
                    </comments>
                    <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|htwbbb:</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>