[SERVER-36110] BadValue: net.tls.mode is not allowed when net.tls.tlsOnNormalPorts is specified Created: 13/Jul/18  Updated: 29/Oct/23  Resolved: 13/Jul/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.1

Type: Bug Priority: Major - P3
Reporter: Bernie Hackett Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

New in 4.1.x. I'm not setting net.tls.mode.

# ./mongod --dbpath ./data --sslOnNormalPorts --sslCAFile ~/mongo-python-driver/test/certificates/ca.pem --sslPEMKeyFile ~/mongo-python-driver/test/certificates/server.pem --sslWeakCertificateValidation
2018-07-13T01:13:44.286+0000 W CONTROL  [main] Option: sslOnNormalPorts is deprecated. Please use tlsOnNormalPorts instead.
2018-07-13T01:13:44.286+0000 W CONTROL  [main] Option: sslPEMKeyFile is deprecated. Please use tlsPEMKeyFile instead.
2018-07-13T01:13:44.286+0000 W CONTROL  [main] Option: sslCAFile is deprecated. Please use tlsCAFile instead.
2018-07-13T01:13:44.286+0000 W CONTROL  [main] Option: sslWeakCertificateValidation is deprecated. Please use tlsWeakCertificateValidation instead.
2018-07-13T01:13:44.287+0000 F CONTROL  [main] Failed global initialization: BadValue: net.tls.mode is not allowed when net.tls.tlsOnNormalPorts is specified
 
# ./mongod --version
db version v4.1.0-675-gacdbc57731
git version: acdbc57731fa3176b0467425ece92e76a8d82958
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
allocator: tcmalloc
modules: enterprise 
build environment:
    distmod: rhel62
    distarch: x86_64
    target_arch: x86_64

I'm guessing this is related to the changes in SERVER-35979.



 Comments   
Comment by Githook User [ 13/Jul/18 ]

Author:

{'username': 'sgolemon', 'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com'}

Message: SERVER-36110 Fix --tlsOnNormalPorts canonicalization
Branch: master
https://github.com/mongodb/mongo/commit/6419a6d5e228e68d3d3f4ffec4e6f90b6413281f

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