Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

curl: (60) Peer certificate cannot be authenticated with known CA certificate

curl: (60) Peer certificate cannot be authenticated with known CA certificate

Contributor

I got all the certificates and keys but I am getting the error.

[solr@zlt00920 ssl-solr]$ ll

total 40

-rwxr-xr-x 1 solr solr 2315 Jun 19 15:40 keystore

-rwxr-xr-x 1 solr solr 1687 Jun 20 11:06 solr.cacert.pem

-rwxr-xr-x 1 solr solr 2159 Jun 19 16:01 solr.crt

-rwxr-xr-x 1 solr solr 1145 Jun 19 15:41 solr.csr

-rwxr-xr-x 1 solr solr 4269 Jun 20 11:14 solr.jks

-rwxr-xr-x 1 solr solr 1675 Jun 20 11:12 solr.key

-rwxr-xr-x 1 solr solr 3157 Jun 20 11:12 solr.p12

-rwxr-xr-x 1 solr solr 3662 Jun 20 11:04 solr.pem

-rwxr-xr-x 1 solr solr 1870 Jun 20 11:14 verisign.crt

[solr@zlt00920 ssl-solr]$ curl -E solr.pem:solr123 --cacert solr.cacert.pem "https://zlt00920.vci.att.com:8983/solr/admin/cores?action=CREATE&name=rcloudnotebooks&instanceDir=/opt/app/solr/example/solr/rcloudnotebooks&config=solrconfig.xml&schema=schema.xml&dataDir=/opt/app/solr/example/solr/rcloudnotebooks/data"

curl: (60) Peer certificate cannot be authenticated with known CA certificates 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.

[solr@zlt00920 ssl-solr]$

Don't have an account?
Coming from Hortonworks? Activate your account here