1. 用firefox瀏覽器取得https網站的server crt,並存成local.crt

    1
    google firefox get ssl cert
  2. 利用keytool產生java client端要用的client keysotre

    1
    2
    keytool -import -alias ocsg.keystore -keystore ocsg.keystore -file localhost.crt
    #建立的同時要輸入密碼,密碼會在下一步用到
Continue reading
  1. 下載jdk
  2. 解壓縮到/usr/java/

    1
    tar -zxvf jdk1.7.0_45.tar.gz
  3. 修改/etc/profile與/etc/profile/etc/bashrc,加入以下

    1
    2
    3
    # JDK environment
    JAVA_HOME=/usr/java/jdk1.7.0_45
    PATH=$PATH:$JAVA_HOME/bin/
  4. 登出再登入,or source /etc/profile

  5. java -version

Comment and share

Cwza

Hello everyone.
I’m cwza.
Welcome to my blog.


Software Engineer


Taiwan/Taipei