2016. 2. 2.

'peer not authenticated' while ionic build with gradle

'peer not authenticated' while ionic build with gradle
  • open browser 'https://maven.repositorydomain'
  • export cert using browser 'you search'
  • copy certfile to JDK_HOME/jre/lib/security
  • command shell open
  • keytool -import -alias {shortname} -file {exported certfile} -keystore cacerts -storepass changeit 
  • you type 'Yes'
  • Try Again gradle.

Woking behind the proxy 각종 프로그램에서 프록시 설정하기

오늘 
I have troubled while using programs which use networks behinde proxy. So I summerized  how to configure proxy.
I found some similar document like mine. but a little different. 

nodejs & npm & ionic 


git
        git config --global http.proxy http://xxxxx
        or .gitconfig 
              [http]  
                 proxy = http://xxx.xxx.xxx:0000

curl
java
  • -Dhttp.proxyHost=xxx.xxx.xxx -Dhttp.proxyPort=0000


  • -Dhttps.proxyHost=xxx.xxx.xxx -Dhttps.proxyPort=0000
  • or using system proxy 
  • java -Djava.net.useSystemProxies=true
apt-get

python pip
  pip install --proxy http://xxx.xxx:000 modulename 
  cert error : 
       pip --cert certfile.pem install moduleName
      ** using config 
          pip/pip.conf
         [global]
         cert=/aaa/aaaa/certfile.pe

** when ssl error is occurred.
(pip version: 8.0.2)
pypi.python.org is download server.
pip install module_name --trusted-host pypi.python.org

gradle
gradle.properties
 systemProp.http.proxyHost=111.111.111.111
 systemProp.http.proxyPort=111
 systemProp.https.proxyHost=222.222.222.222
 systemProp.https.proxyPort=111