Difference between revisions of "Proxmox 2.0: Akses Konsol VNC"

From OnnoWiki
Jump to navigation Jump to search
Line 73: Line 73:
  
 
  keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
 
  keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
 +
 +
keytool -import -trustcacerts -keystore /etc/java-sun/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
 +
 +
keytool -import -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
  
 
==Referensi==
 
==Referensi==

Revision as of 11:17, 16 February 2014

Pastikan anda memiliki akses ke Internet yang kencang.

Masukan di /etc/apt/sources.list

deb http://www.duinsoft.nl/pkg debs all

Lakukan gpg key

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26

Lakukan

sudo apt-get update
sudo apt-get install update-sun-jre

Ini akan memakan waktu lumayan karena akan mendownload sekitar 40-50Mbyte file


Instalasi Java Secara Manual

Men-delete plugin yang lama

sudo su
rm /usr/lib/mozilla/plugins/libnpjp2.so

Menginstalasi

sudo su
mkdir /usr/java
cd /usr/java/
cp tar zxvf jre-7u45-linux-x64.tar.gz /usr/java
cd /usr/java
tar zxvf jre-7u45-linux-x64.tar.gz

Mengaktifkan Java Secara Manual

Mengaktifkan secara manual untuk amd64

cd /usr/lib/mozilla/plugins
ln -s /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so


Memperbaiki Sertifikat yang Selfsigned

Misalnya web yang di akses adalah 192.168.0.13 port 8006

echo -n | openssl s_client -connect 192.168.0.13:8006 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/mycert.crt

Akan keluar

depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=27:certificate not trusted
verify return:1
depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=21:unable to verify the first certificate
verify return:1
DONE


Verify menggunakan perintah

openssl x509 -in /tmp/mycert.crt -text

Ini tidak harus.


Simpan di cacert

keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
keytool -import -trustcacerts -keystore /etc/java-sun/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
keytool -import -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt

Referensi


Pranala Menarik

Proxmox 2.0