Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70271

TLS Authentication not working for self signed certifcates.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      command issued:

      mongo -tls --host 127.0.0.1 --tlsCAFile /etc/ssl/self/root_self_CA.pem  tlsCertificateKeyFile /etc/ssl/self/mongodb_client.pem --tlsCertificateKeyFilePassword admin@123 --tlsAllowInvalidCertificates -u mongouser -p  -authenticationDatabase admin

      Log of Mongodb:

      {"t":\{"$date":"2022-10-06T08:08:57.920-04:00"}

      ,"s":"E",  "c":"NETWORK",  "id":23256,   "ctx":"conn14","msg":"SSL peer certificate validation failed","attr":{"error":"SSL peer certificate validation failed: self signed certificate"}}

      {"t":\{"$date":"2022-10-06T08:08:57.920-04:00"}

      ,"s":"I",  "c":"NETWORK",  "id":22988,   "ctx":"conn14","msg":"Error receiving request from client. Ending connection from remote","attr":{"error":

      {"code":141,"codeName":"SSLHandshakeFailed","errmsg":"SSL peer certificate validation failed: self signed certificate"}

      ,"remote":"127.0.0.1:49150","connectionId":14}}

      {"t":\{"$date":"2022-10-06T08:08:57.920-04:00"}

      ,"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn14","msg":"Connection ended","attr":{"remote":"127.0.0.1:49150","uuid":"6150d1f4-3272-444f-a8ea-4a993774380c","connectionId":14,"connectionCount":0}}

      Attachments

        Activity

          People

            yuan.fang@mongodb.com Yuan Fang
            it.subramanian@gmail.com bala subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: