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

SSL mode means HTTP interface becomes HTTPS interface

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    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

            ravind.kumar Ravind Kumar (Inactive)
            akira.kurogane Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 4 weeks ago