I am trying to configure Edge Microgateway on a Ubuntu 16 VM. I am facing OpenSSL client error when I issue the configure command. (masked my identity values)
$ edgemicro configure -o xxxx -e test -u xxxx@xxxx.com current nodejs version is v4.6.0 current edgemicro version is 2.3.1 password: file doesn't exist, setting up { [Error: tunneling socket could not be established, cause=write EPROTO 3073390336:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:] code: 'ECONNRESET' } $ openssl version OpenSSL 1.0.2g 1 Mar 2016
I suspect connection outside your corporate network require a HTTP PROXY. If you do require a HTTP proxy, I recommend installing the latest version of EM.
npm install -g edgemicro@beta
Proxy is set in the system configuration, and wget works fine. I see that edgemicro is not picking up the proxy from system settings. Is there a configuration in edgemicro (default.yaml?) to set the proxy?
EM will respect the HTTP_PROXY variable (or HTTPS_PROXY)
EM will respect the HTTP_PROXY environment variable (or HTTPS_PROXY)
Okay. Thanks for the responses. Let me try setting it. Also, it would've been great help to users if proxy in system configuration (Network Settings-->Proxy on Ubuntu) is also picked up/considered.
The configure worked in a environment without proxy. I dont see that EM is picking up proxy settings from the environment. I've set it in the following format:
$ export HTTP_PROXY=http://server:port $ export HTTPS_PROXY=https://server:port