Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1890

native-cert-ssl ssl_with_system_ca.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.1, 3.6.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      https://evergreen.mongodb.com/task/mongo_tools_windows_64_ssl_native_cert_ssl_6192dae6e17e4139300e72afae91e6e7dea6d6ac_17_11_21_17_46_45

      https://logkeeper.mongodb.org/build/9ce2adb57e99ac2239cc949cf73d53d6/test/5a14785ec2ab6828321ec605

      [js_test:ssl_with_system_ca] 2017-11-21T19:02:56.867+0000 2017-11-21T19:02:56.867+0000 I -        [thread1] shell: started program (sh2428):  C:\data\mci\fa2bc1542717fd271884b3fe6bea4ca6\src\test\qa-tests\mongod.exe --sslMode requireSSL --sslPEMKeyFile jstests/libs/server.pem --port 20010 --bind_ip 0.0.0.0 --dbpath \data\db\job0\mongorunner/mongod-20010 --nopreallocj --setParameter enableTestCommands=1 --setParameter disableLogicalSessionCacheRefresh=true --setParameter orphanCleanupDelaySecs=0 --setParameter logComponentVerbosity={"tracking":0,"replication":{"heartbeats":2,"rollback":2}}
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.104+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] MongoDB starting : pid=2428 port=20010 dbpath=\data\db\job0\mongorunner/mongod-20010 64-bit host=WIN-90NKMAMI7BC
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.104+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.104+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] db version v3.6.0-rc4
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.104+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] git version: 9dfa7ab336623d435c9aa5d7192973706a047294
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips  22 Sep 2016
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] allocator: tcmalloc
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] modules: none
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] build environment:
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten]     distmod: 2008plus-ssl
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten]     distarch: x86_64
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten]     target_arch: x86_64
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.105+0000 d20010| 2017-11-21T19:02:57.104+0000 I CONTROL  [initandlisten] options: { net: { bindIp: "0.0.0.0", port: 20010, ssl: { PEMKeyFile: "jstests/libs/server.pem", mode: "requireSSL" } }, setParameter: { disableLogicalSessionCacheRefresh: "true", enableTestCommands: "1", logComponentVerbosity: "{tracking:0,replication:{heartbeats:2,rollback:2}}", orphanCleanupDelaySecs: "0" }, storage: { dbPath: "\data\db\job0\mongorunner/mongod-20010", mmapv1: { journal: { nopreallocj: true } } } }
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.107+0000 d20010| 2017-11-21T19:02:57.107+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=14847M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 W STORAGE  [initandlisten] Detected configuration for non-active storage engine mmapv1 when current storage engine is wiredTiger
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten]
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten]
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten] ** WARNING: No SSL certificate validation can be performed since no CA file has been provided
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten] **          Please specify an sslCAFile parameter.
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten]
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.157+0000 d20010| 2017-11-21T19:02:57.157+0000 I CONTROL  [initandlisten]
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.165+0000 d20010| 2017-11-21T19:02:57.166+0000 I CONTROL  [initandlisten] ** WARNING: The file system cache of this machine is configured to be greater than 40% of the total memory. This can lead to increased memory pressure and poor performance.
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.165+0000 d20010| 2017-11-21T19:02:57.166+0000 I CONTROL  [initandlisten] See http://dochub.mongodb.org/core/wt-windows-system-file-cache
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.165+0000 d20010| 2017-11-21T19:02:57.166+0000 I CONTROL  [initandlisten]
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.167+0000 d20010| 2017-11-21T19:02:57.168+0000 I STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: cbdec8a9-d049-4316-a3ef-3d16696faa8a
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.174+0000 d20010| 2017-11-21T19:02:57.174+0000 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 3.6
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:57.178+0000 d20010| 2017-11-21T19:02:57.179+0000 I STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: f0d69827-d046-4bc2-ba9c-837592f6a89d
      2017-11-21 19:02:58 +0000	
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:58.286+0000 d20010| 2017-11-21T19:02:58.286+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/job0/mongorunner/mongod-20010/diagnostic.data'
      [js_test:ssl_with_system_ca] 2017-11-21T19:02:58.286+0000 d20010| 2017-11-21T19:02:58.287+0000 I NETWORK  [initandlisten] waiting for connections on port 20010 ssl
      2017-11-21 19:03:01 +0000	
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:01.867+0000 2017-11-21T19:03:01.867+0000 W NETWORK  [thread1] Failed to connect to 127.0.0.1:20010 after 5000ms milliseconds, giving up.
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:02.066+0000 d20010| 2017-11-21T19:03:02.067+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:51721 #1 (1 connection now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:02.092+0000 2017-11-21T19:03:02.093+0000 W NETWORK  [thread1] SSL peer certificate validation failed: unable to get local issuer certificate
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:02.101+0000 d20010| 2017-11-21T19:03:02.101+0000 I NETWORK  [conn1] received client metadata from 127.0.0.1:51721 conn: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.6.0-rc4" }, os: { type: "Windows", name: "Microsoft Windows Server 2008 R2", architecture: "x86_64", version: "6.1 SP1 (build 7601)" } }
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:02.105+0000 2017-11-21T19:03:02.104+0000 I -        [thread1] shell: started program (sh4404):  C:\data\mci\fa2bc1542717fd271884b3fe6bea4ca6\src\test\qa-tests\./mongodump.exe -v --ssl --port 20010 --sslPEMKeyFile jstests/libs/client.pem
      2017-11-21 19:03:03 +0000	
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:03.233+0000 d20010| 2017-11-21T19:03:03.234+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:51725 #2 (2 connections now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:03.233+0000 d20010| 2017-11-21T19:03:03.234+0000 I NETWORK  [conn2] end connection 127.0.0.1:51725 (1 connection now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:03.259+0000 sh4404| 2017-11-21T19:03:03.234+0000	error dialing localhost:20010: SSL errors: SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
      2017-11-21 19:03:04 +0000	
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:04.759+0000 d20010| 2017-11-21T19:03:04.760+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:51728 #3 (2 connections now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:04.760+0000 sh4404| 2017-11-21T19:03:04.760+0000	error dialing localhost:20010: SSL errors: SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:04.760+0000 d20010| 2017-11-21T19:03:04.760+0000 I NETWORK  [conn3] end connection 127.0.0.1:51728 (1 connection now open)
      2017-11-21 19:03:06 +0000	
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.259+0000 d20010| 2017-11-21T19:03:06.260+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:51732 #4 (2 connections now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.259+0000 sh4404| 2017-11-21T19:03:06.260+0000	error dialing localhost:20010: SSL errors: SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.260+0000 d20010| 2017-11-21T19:03:06.260+0000 I NETWORK  [conn4] end connection 127.0.0.1:51732 (1 connection now open)
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.759+0000 sh4404| 2017-11-21T19:03:06.760+0000	Failed: error connecting to db server: no reachable servers
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 assert: [1] != [0] are not equal : successfully connected with SSL
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 doassert@src/mongo/shell/assert.js:18:14
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 assert.eq@src/mongo/shell/assert.js:54:5
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 testWithCerts@jstests\ssl\ssl_with_system_ca.js:34:5
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 @jstests\ssl\ssl_with_system_ca.js:40:5
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 assertThrowsHelper@src/mongo/shell/assert.js:342:19
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 assert.throws@src/mongo/shell/assert.js:362:25
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 @jstests\ssl\ssl_with_system_ca.js:39:3
      [js_test:ssl_with_system_ca] 2017-11-21T19:03:06.762+0000 @jstests\ssl\ssl_with_system_ca.js:5:3
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: