Installation of caddy give error on retrieving

(Read this, then delete it before you post.) To get the best help possible, please:

  • explain what you are trying to do,
    Install Caddy

  • show what you have already tried,
    curl https://getcaddy.com | bash -s http.cache,http.cors,http.jwt

  • include error messages and log output,
    curl: (35) Peer reports incompatible or unsupported protocol version.

  • and link to any relevant resources.
    I am on CentOS 7, I tried many things, including -k and -iv. This is the output:

    About to connect() to getcaddy.com port 443 (#0)
    *   Trying 138.68.240.78...
    * Connected to getcaddy.com (138.68.240.78) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    * NSS error -12190 (SSL_ERROR_PROTOCOL_VERSION_ALERT)
    * Peer reports incompatible or unsupported protocol version.
    * Error in TLS handshake, trying SSLv3...
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: getcaddy.com
    > Accept: */*
    > 
    * Connection died, retrying a fresh connect
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    * Closing connection 0
    * Issue another request to this URL: 'https://getcaddy.com'
    * About to connect() to getcaddy.com port 443 (#1)
    *   Trying 138.68.240.78...
    * Connected to getcaddy.com (138.68.240.78) port 443 (#1)
    * TLS disabled due to previous handshake failure
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    * NSS error -12190 (SSL_ERROR_PROTOCOL_VERSION_ALERT)
    * Peer reports incompatible or unsupported protocol version.
    * Closing connection 1
    curl: (35) Peer reports incompatible or unsupported protocol version.

What can I do to install caddy? I tried with wget but then the application starts at once and is not installed. I need to manage caddy as a service so, I think that the best way is installing it trough the script

SSL3 is very old and not supported by Caddy.

Your version of curl seems to date back to 2013, try updating curl and try again to see if it solves the issue.

1 Like

Hello! When I check the version I get:

curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.15.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz 

The command line that I used is:
curl -iv https://getcaddy.com | bash -s http.cache,http.cors,http.jwt

and also:

curl https://getcaddy.com | bash -s http.cache,http.cors,http.jwt

Yep, that cURL is from 2013:

https://curl.haxx.se/mail/lib-2013-02/0086.html

The latest cURL as of this writing is 7.56.1, released 23 October 2017:

https://curl.haxx.se/download.html

Grab the update and try again.

2 Likes

Or try with wget like this:
wget -qO- https://getcaddy.com | bash -s http.cache,http.cors,http.jwt

1 Like

Thank you so much! you were really helpfull. I managed to update the version of curl, and it worked pretty well!

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