Browse Source

Improve message from curl error code 60

Issue #288
pull/289/head
Timothe Litt 9 years ago
parent
commit
49d837de53
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      getssl

+ 2
- 1
getssl View File

@ -429,7 +429,8 @@ check_getssl_upgrade() { # check if a more recent version of code is available a
curl --silent "$CODE_LOCATION" --output "$TEMP_UPGRADE_FILE"
errcode=$?
if [[ $errcode -eq 60 ]]; then
error_exit "curl needs updating, your version does not support SNI (multiple SSL domains on a single IP)"
longmsg=$'Can not authenticate SSL peer. Your ca_bundle.crt and/or curl may need\nupdating. ca_bundle.crt can be updates with mk-ca-bundle. Curl should\nsupport SNI (multiple SSL domains on a single IP)'
error_exit "$longmsg"
elif [[ $errcode -gt 0 ]]; then
error_exit "curl error : $errcode"
fi


Loading…
Cancel
Save