Connect with certificate to elasticsearch

I'm trying to connect to elasticsearch on localhost machine with certificate and key but when I try to connect I have this error:

curl --cacert /etc/elasticsearch/cert/node_testuserCA.pem --cert /etc/elasticsearch/cert/node-pt-mast2.pem --key /etc/elasticsearch/cert/node-pt-mast2.key -GET -kv

  • About to connect() to port 9200 (#0)
  • Trying
  • Connected to ( port 9200 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • skipping SSL peer certificate verification
  • NSS: client certificate not found: T
  • NSS error -12271 (SSL_ERROR_BAD_CERT_ALERT)
  • SSL peer cannot verify your certificate.
  • Closing connection 0
    curl: (58) NSS: client certificate not found: T
    [testuser@node-pt-mast2 cert]#

This should be -XGET or --get

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.