I have no experience with NSS, we recommend to use a curl binary compiled against openssl instead of NSS.
Thats nothing Search Guard can change or influence. You can also try wget or HTTPie instead of curl.
See also:
https://github.com/floragunncom/search-guard/issues/272
https://groups.google.com/forum/#!searchin/search-guard/nss$20curl%7Csort:relevance
> Am 13.07.2017 um 19:42 schrieb Steve Haertel <
steveh...@gmail.com>:
>
> My elasticsearch openssl config was "false", so I restarted it and set it to "true"
>
> Now I get ...
>
> [root@stevew scripts]# curl -v -cacert /PATH/cacert.pem -XGET
https://hostname.domain:9201/_cluster/health?otherstuff=values
> * <url> malformed
> * Closing connection -1
> curl: (3) <url> malformed
> * About to connect() to hostname.domain port 9201 (#0)
> * Trying 9.21.63.21...
> * Connected to hostname.domain (XXX.XXX.XXX.XXX) port 9201 (#0)
> * Initializing NSS with certpath: sql:/etc/pki/nssdb
> * CAfile: /etc/pki/tls/certs/ca-bundle.crt
> CApath: none
> * Server certificate:
> * subject: CN=*.SCRUBBED_DOMAIN,O=ORG,C=CA
> * start date: Jul 12 17:36:22 2017 GMT
> * expire date: Jul 11 17:36:22 2020 GMT
> * common name: *.SCRUBBED_DOMAIN
> * issuer: CN=SCRUBBED_ISSUER (SHA256),O=ORG,C=CA
> * NSS error -8179 (SEC_ERROR_UNKNOWN_ISSUER)
> * Peer's Certificate issuer is not recognized.
> * Closing connection 0
> curl: (60) Peer's Certificate issuer is not recognized.
> More details here:
http://curl.haxx.se/docs/sslcerts.html
>
> curl performs SSL certificate verification by default, using a "bundle"
> of Certificate Authority (CA) public keys (CA certs). If the default
> bundle file isn't adequate, you can specify an alternate file
> using the --cacert option.
> If this HTTPS server uses a certificate signed by a CA represented in
> the bundle, the certificate verification probably failed due to a
> problem with the certificate (it might be expired, or the name might
> not match the domain name in the URL).
> If you'd like to turn off curl's verification of the certificate, use
> the -k (or --insecure) option.
>
> It's telling me to use the insecure option, but I'm trying to figure out a way to get it to accept the cert... do I have to add to that NSS bundle?
>
> --
> You received this message because you are subscribed to the Google Groups "Search Guard" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
search-guard...@googlegroups.com.
> To post to this group, send email to
search...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/search-guard/0f199fd0-025f-4278-bc6d-0964959028d3%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.