Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2008

Test X.509 authentication with Secure Channel

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: tls
    • Labels:
      None

      The certificate that needs to be used for X.509 authentication on ldaptest isn't very well liked by Secure Channel and therefore needs to be regenerated:

      $ ./Debug/mongoc-ping.exe 'mongodb://CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US@ldaptest.10gen.cc/?ssl=true&authMechanism=MONGODB-X509&sslClientCertificateKeyFile=tests/x509gen/legacy-x509.pem&sslCertificateAuthorityFile=tests/x509gen/legacy-ca.crt&sslAllowInvalidHostname=true'
      2017/01/30 21:55:14.0990: [  976]:    DEBUG:      cluster: Authentication failed: auth failed
      2017/01/30 21:55:14.0984: [  976]:    ERROR: stream-secure-channel: Failed to parse private key. ASN1 bad tag value met. (0x8009310B)
      2017/01/30 21:55:14.0987: [  976]:  WARNING: stream-secure-channel: a client certificate has been requested
      Ping failure: auth failed
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: