TLS Authentication not working for self signed certifcates.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}}

            Assignee:
            Yuan Fang
            Reporter:
            bala subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: