[DOCS-7326] SSL mode means HTTP interface becomes HTTPS interface Created: 02/Mar/16  Updated: 30/Oct/23  Resolved: 18/Jan/18

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Akira Kurogane Assignee: Ravind Kumar (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 6 years, 4 weeks ago

 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."



 Comments   
Comment by Akira Kurogane [ 18/Jan/18 ]

N/A now that the REST interfaces are deprecated. Closing.

Generated at Thu Feb 08 07:54:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.