Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-989

CLI not responding on self signed certificate

    Details

    • Customer Priority:
      Immediate
    • Customer Labels:
    • Story Points:
      13
    • Sprint:
      2016 Sprint 12 Tooling

      Description

      description

      When we use self signed certificate internally for the firewall, we are getting the following error for "appc" or "appc setup" command

      Error

      [010132125106:bin cprice$ DEBUG=* appc setup -l trace 
      appc:bin install bin is undefined +0ms 
      appc:bin main subcommand setup +4ms 
      appc:bin main setup found +9ms 
      appc:bin main - !installBin or couldn't find it null +0ms 
      appc:install preflight checks, is this windows? 0 +1ms 
      appc:install home directory located at /Users/cprice +1ms 
      appc:install install, wantVersion: , url: https://software.appcelerator.com/api/appc/install/, bin: +59ms 
      appc:download download start, quiet 0, banner 1 +2ms 
      appc:download download called with arguments: { '0': false, '1': false, '2': '', '3': '/var/folders/zs/hnjjcnrn72j7mrd6hhnj50k5z62p65/T/appc-1460744471524.tar.gz', '4': { _writableState: { objectMode: false, highWaterMark: 16384, needDrain: false, ending: false, ended: false, finished: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function], writecb: null, writelen: 0, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 0, prefinished: false, errorEmitted: false }, writable: true, domain: null, _events: { finish: [Object] }, _maxListeners: undefined, path: '/var/folders/zs/hnjjcnrn72j7mrd6hhnj50k5z62p65/T/appc-1460744471524.tar.gz', fd: null, flags: 'w', mode: 438, start: undefined, pos: undefined, bytesWritten: 0 }, '5': 'https://software.appcelerator.com/api/appc/install/', '6': [Function], '7': false } +0ms 
      Finding latest version ... appc:download connection attempt 1 of 10 +4ms 
      appc:util request {"url":{"protocol":"https:","slashes":true,"auth":null,"host":"software.appcelerator.com","port":443,"hostname":"software.appcelerator.com","hash":null,"search":null,"query":null,"pathname":"/api/appc/install/","path":"/api/appc/install/","href":"https://software.appcelerator.com/api/appc/install/"},"headers":{"user-agent":"Appcelerator CLI/4.2.4 (darwin)","host":"software.appcelerator.com","appc-token":null}} +179ms 
      - appc:util request error +1s { [Error: self signed certificate in certificate chain] code: 'SELF_SIGNED_CERT_IN_CHAIN' } 
      appc:download error from download was: { [Error: self signed certificate in certificate chain] code: 'SELF_SIGNED_CERT_IN_CHAIN' } +2ms 
      appc:error creating AppCError Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com., com.appcelerator.install.download.server.response.error +1ms 
      appc:util fail { [AppCError: Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com.] id: 'com.appcelerator.install.download.server.response.error', name: 'AppCError', message: 'Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com.' } +2ms
       
       
      appc:error creating AppCError Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com., com.appcelerator.install.download.server.response.error +1ms 
      appc:util fail { [AppCError: Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com.] id: 'com.appcelerator.install.download.server.response.error', name: 'AppCError', message: 'Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com.' } +2ms 
      AppCError: Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com. 
      at Object.exports.createError (/usr/local/lib/node_modules/appcelerator/lib/error.js:157:10) 
      at /usr/local/lib/node_modules/appcelerator/lib/download.js:49:29 
      at Request.<anonymous> (/usr/local/lib/node_modules/appcelerator/lib/util.js:535:10) 
      at Request.emit (events.js:107:17) 
      at Request.onRequestError (/usr/local/lib/node_modules/appcelerator/node_modules/request/request.js:831:8) 
      at ClientRequest.emit (events.js:107:17) 
      at TLSSocket.socketErrorListener (_http_client.js:271:9) 
      at TLSSocket.emit (events.js:129:20) 
      at TLSSocket.<anonymous> (_tls_wrap.js:942:18) 
      at TLSSocket.emit (events.js:104:17) 
       
      Server responded with unexpected error: self signed certificate in certificate chain. Please re-try your install again. If you continue to have this problem, please contact Appcelerator Support at support@appcelerator.com.
       
       
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                morahman Motiur Rahman
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code