Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19235

X.509 certificate malformed error should be more prescriptive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 4.5.0
    • 4.5.0
    • ns_server
    • Untriaged
    • Unknown

    Description

      I'm using a public CA in this example from https://letsencrypt.org/certificates/

      Step 1: Download intermediate certificate by mistake
      wget https://letsencrypt.org/certs/letsencryptauthorityx1.pem
      mv letsencryptauthorityx1.pem ca.pem

      Dons-MacBook-Pro:root don$ curl -X POST --data-binary "@./ca.pem" http://Administrator:password@127.0.0.1:8091/controller/uploadClusterCA

      {"error":"Malformed certificate"}

      It should not just say malformed certificate, it should say, why it failed? Is it because it's not a CA certificate?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            artem Artem Stemkovski
            djp Don Pinto [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty