Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7326

SSL mode means HTTP interface becomes HTTPS interface

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual
    • Labels:
      None
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      If using the enterprise version there is an SSL mode. If that is being usd then the HTTP status interface and the REST API will use HTTPS instead of HTTP.

      If you attempt to make a HTTP connection the following will happen.

      #start mongod with net.ssl.mode = allowSSL/requireSSL
      [root@sdev-mongoOps1 ~]#  #Test REST API
      [root@sdev-mongoOps1 ~]# curl http://localhost:28017/test/fakecollectionname/ 
      curl: (52) Empty reply from server
      [root@sdev-mongoOps1 ~]#  #Test HTTP status page
      [root@sdev-mongoOps1 ~]# curl http://localhost:28017/
      curl: (52) Empty reply from server
      

      Instead the HTTPS protocol must be used. (The curl command below seems to do it automatically if you put "https" in the URL.)

      [root@sdev-mongoOps1 ~]# curl https://localhost:28017/
      <html>
      <header>......
      .....
      ....
      </body></html>
      [root@sdev-mongoOps1 ~]# 
      

      So I suggest a note such as "Note: if you are an enterprise user with SSL enable these interfaces will change from HTTP to HTTPS. Your web browser or REST API clients must connect using the HTTPS protocol."

        Attachments

          Activity

            People

            Assignee:
            ravind.kumar Ravind Kumar
            Reporter:
            akira.kurogane Akira Kurogane
            Participants:
            Last commenter:
            Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              2 years, 24 weeks ago
              Date of 1st Reply: