title: Azure vm docker create cannot find certificate 'ca.pem'
body: <p>I'm trying to create a docker host in azure, so I ran the following command (via <a href="http://msopentech.com/blog/2014/08/07/azure-cross-platform-cli-tools/" rel="nofollow">azure-cli</a> version 0.8.11 and node version 0.10.33):</p>
  
  <pre><code>$ azure vm docker create -v [.. + loads of options..]
  info:    Executing command vm docker create
  verbose: C:\Users\JAM\.docker\ca-key.pem file was not found
  verbose: C:\Users\JAM\.docker\ca.pem file was not found
  verbose: C:\Users\JAM\.docker\server-key.pem file was not found
  verbose: C:\Users\JAM\.docker\server-cert.pem file was not found
  verbose: C:\Users\JAM\.docker\key.pem file was not found
  verbose: C:\Users\JAM\.docker\cert.pem file was not found
  verbose: Generating docker certificates.
  verbose: Loading 'screen' into random state - done
  Generating RSA private key, 512 bit long modulus
  .......++++++++++++
  ............++++++++++++
  e is 65537 (0x10001)
  
  verbose: Unable to load config info from /usr/local/ssl/openssl.cnf
  
  verbose: Loading 'screen' into random state - done
  Generating RSA private key, 512 bit long modulus
  .++++++++++++
  ..++++++++++++
  e is 65537 (0x10001)
  
  verbose: Unable to load config info from /usr/local/ssl/openssl.cnf
  
  verbose: Loading 'screen' into random state -C:\Users\JAM\.docker\server.csr: No such file or directory
   done
  
  verbose: Loading 'screen' into random state - done
  Generating RSA private key, 512 bit long modulus
  .........................++++++++++++
  ..++++++++++++
  e is 65537 (0x10001)
  
  verbose: Unable to load config info from /usr/local/ssl/openssl.cnf
  
  verbose: Loading 'screen' into random state -C:\Users\JAM\.docker\client.csr: No such file or directory
   done
  
  verbose: writing RSA key
  
  verbose: writing RSA key
  
  error:   ENOENT, no such file or directory 'C:\Users\JAM\.docker\ca.pem'
  verbose: stack Error: ENOENT, no such file or directory 'C:\Users\JAM\.docker\ca.pem'
      at Object.fs.chmodSync (fs.js:832:18)
      at C:\nvm\v0.10.33\node_modules\azure-cli\lib\commands\asm\vm\vmclient.js:3104:30
      at ChildProcess.&lt;anonymous&gt; (C:\nvm\v0.10.33\node_modules\azure-cli\node_modules\openssl-wrapper\lib\openssl-wrapper.js:86:16)
      at ChildProcess.emit (events.js:98:17)
      at maybeClose (child_process.js:756:16)
      at Process.ChildProcess._handle.onexit (child_process.js:823:5)
  info:    Error information has been recorded to azure.err
  </code></pre>
  
  <p>The azure-cli is unable to load the openssl config, because the path <code>/usr/local</code> does not exist:</p>
  
  <pre><code>verbose: Unable to load config info from /usr/local/ssl/openssl.cnf
  </code></pre>
  
  <p>However, the path <code>/usr/ssl/..</code> and <code>/usr/ssl/openssl.cnf</code> exists. So I tried just copying <code>/usr/ssl/*</code> to <code>/usr/local/ssl/*</code>, but the same error keeps popping up.</p>
  
  <p>Any ideas of how to fix this?</p>