title: Visual Studio 2015 Remote iOS Build Server Setup - secure mode issue
body: <p>I am building a hybrid mobile app (Cordova) and I am trying to run my build on iOS. </p>
  
  <p>I have followed the steps in this <a href="https://msdn.microsoft.com/library/dn757054.aspx#ios" rel="nofollow">documentation</a> to setup my connected Mac and I can see that the Mac terminal responding when I try to build my code in visual studio.</p>
  
  <p>My issue is that when ever I enable the remote build server using <code>remotebuild --secure false</code> I get the following error in visual studio output(notice that the terminal is responding to the build request from visual studio but then fails with errors): </p>
  
  <blockquote>
    <p>Non-secure connection to <a href="http://192.168.1.10:3000/cordova" rel="nofollow">http://192.168.1.10:3000/cordova</a> could not be established. Verify that the build server is not running in secure mode.</p>
  </blockquote>
  
  <p>And here is the Mac terminal activity with and output:</p>
  
  <pre><code>    Last login: Tue Aug 18 19:31:21 on ttys001
  IBRAHIM-ALHUSSAINs-Mac-mini:~ IBRAHIMALHUSSAIN$ remotebuild --secure false
  remotebuild
  Copyright (C) 2014 Microsoft Corporation. All rights reserved.
  1.0.1
  
  Warning: No server modules selected. Defaulting to configuration "modules": {"taco-remote": { "mountPath": "cordova"} }
  Build Retention initialized with baseBuildDir /Users/IBRAHIMALHUSSAIN/.taco_home/remote-builds/taco-remote/builds, maxBuildsToKeep 20
  Initialized BuildManager with baseBuildDir /Users/IBRAHIMALHUSSAIN/.taco_home/remote-builds/taco-remote/builds; maxBuildsInQueue 10; deleteBuildsOnShutdown true; allowsEmulate true; nextBuildNumber 423
  Remote build server listening on [http] port 3000
  express deprecated req.host: Use req.hostname instead ../../usr/local/lib/node_modules/remotebuild/lib/server.js:257:81
  GET /modules/taco-remote 200 14.494 ms - 7
  New build request submitted:
  /build/tasks?command=build&amp;vcordova=4.3.0&amp;cfg=debug&amp;loglevel=warn
  { 'accept-language': 'en-US',
    host: '192.168.1.10:3000',
    connection: 'close',
    'transfer-encoding': 'chunked' }
  POST /cordova/build/tasks?command=build&amp;vcordova=4.3.0&amp;cfg=debug&amp;loglevel=warn - - ms - -
  npm ERR! Darwin 14.3.0
  npm ERR! argv "node" "/usr/local/bin/npm" "install" "taco-remote-multiplexer"
  npm ERR! node v0.12.4
  npm ERR! npm  v2.13.4
  npm ERR! code ENOTFOUND
  npm ERR! errno ENOTFOUND
  npm ERR! syscall getaddrinfo
  
  npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org
  npm ERR! network This is most likely not a problem with npm itself
  npm ERR! network and is related to network connectivity.
  npm ERR! network In most cases you are behind a proxy or have bad network settings.
  npm ERR! network
  npm ERR! network If you are behind a proxy, please make sure that the
  npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
  
  npm ERR! Please include the following file with any support request:
  npm ERR!     /Users/IBRAHIMALHUSSAIN/.taco_home/node_modules/taco-remote-multiplexer/latest/npm-debug.log
  </code></pre>
  
  <p>I remember reading somewhere that I should enable secure build once then disable it in order to initialize the remote server security configuration. Whenever I try to run in secure build mode <code>remotebuild</code> I would get this error:</p>
  
  <blockquote>
    <p>Secure connection to <a href="https://192.168.1.10:3000/cordova" rel="nofollow">https://192.168.1.10:3000/cordova</a> could not be established. Verify that the build server is running in secure mode.</p>
  </blockquote>
  
  <p>I have also attempted to resolve this issue by recreating PIN, generating and resetting the certificate.</p>
  
  <p>How can I resolve this issue?</p>