Please help on this error --- curl ssl cert error while installing sample proxies

charan19n
Participant I

Creating caches % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory /usr/bin/env: ‘python’: No such file or directory

0 4 5,365
4 REPLIES 4

ylesyuk
Participant V

Either use -k option of curl to ignore certificate validation or --cacert or --capath to provide certicate(s) that curl can use to validate your server.

-k, --insecure
(TLS) By default, every SSL connection curl makes is verified to be secure. This option allows curl to proceed and operate even for server connections otherwise considered insecure.
The server connection is verified by making sure the server's certificate contains the right name and verifies successfully using the cert store.

...

--cacert (HTTPS) Tells curl to use the specified certificate file to verify the peer. The file may contain multiple CA certificates. The certificate(s) must be in PEM format. If this option is used several times, the last one will be used.


--capath (HTTPS) Tells curl to use the specified certificate directory to verify the peer. The certificates must be in PEM format, and the directory must have been processed using the c_rehash utility supplied with openssl. Certificate directories are not supported under Windows (because c_rehash uses symbolink links to create them). Using --capath can allow curl to make https connections much more efficiently than using --cacert if the --cacert file contains many CA certificates. If this option is used several times, the last one will be used.

charan19n
Participant I

@ylesyuk

>curl -k https://api.enterprise.apigee.com {"fault":{"faultstring":"Unable to identify proxy for host: custom and url: \/","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

I'm getting the above error,

Please any ideas on this?

This is a correct response from Edge, as you're not sending your request to any proxy. Look for a correct URL in OVERVIEW tab of the proxy editor or in the TRACE tab.

charan19n
Participant I

@ylesyuk

I gave the URL as https://enterprise.apigee.com..and tried..I dint get error..but still my proxies weren't getting deployed..I don't see them in the Apigee Edge Portal under Develop-API Proxy tab...

In short I gave: curl -k https://enterprise.apigee.com