Protected: file codeigniter

May 29th, 2012 by Idris

This post is password protected. To view it please enter your password below:


  • Enter your password to view comments
  • Posted in Info umum

import cert ke JRE supaya TRUSTED

May 20th, 2012 by Idris

jadikan DER dulu

openssl x509 -in /etc/digicert/eepis-its.edu.pem -out /tmp/eepis-its.edu.der -outform DER

nah sekarang import

keytool -import -keystore $JAVA_HOME/jre/lib/security/cacerts -file tmp/incommon-root-cert.der -alias incommon

setelah itu cek apakah sudah masuk

keytool -v -list -keystore $JAVA_HOME/jre/lib/security/cacerts

biasanya password (kalau di tanyakan): changeit

LDAPS pada zimbra

May 20th, 2012 by Idris

biasanya zimbra pada saat install lupa ldap nya tidak di set ldaps kalau lupa silahkan di set seperti berikut ini:
su - zimbra
zmlocalconfig -e ldap_master_url=ldaps://mymaster.somewhere.com:636
zmlocalconfig -e ldap_url=ldaps://myreplica.somewhere.com:636
zmlocalconfig -e ldap_starttls_supported=0
zmlocalconfig -e ldap_port=636
zmcontrol stop
zmcontrol start

SSL Tomcat pakai Digicert

May 19th, 2012 by Idris

Walah settingnya ternyata mbulet.com

<Connector port=”8443″ maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ scheme=”https” secure=”true”
SSLEnabled=”true”
SSLCertificateFile=”/etc/digicert/eepis-its.edu.pem”
SSLCertificateKeyFile=”/etc/digicert/eepis-its.edu.key”
SSLCertificateChainFile=”/etc/digicert/eepis-its.edu-ca.crt” />

May 8th, 2012 by Idris

  1. Host
  2. <?php
  3.     $PREAUTH_KEY=”b1e40a2aa6bebcf3fb1c9c7ba4a97201b1e40a2aa6bebcf3fb1c9c7ba4a97201″;
  4.     $WEB_MAIL_PREAUTH_URL=”https://www.eepis-its.edu/preauth”;
  5.     $user = $_GET[”user”];
  6.     $domain=$_GET[”domain”];
  7.     $email = “{$user}@{$domain}”;
  8.     if(empty($PREAUTH_KEY)) {
  9.         die(”Need preauth key for domain “.$domain);
  10.     }
  11.     $timestamp=time()*1000;
  12.     $halo=number_format($timestamp,0,”,”);
  13.     $preauthToken=hash_hmac(”sha1″,$email.”|name|0|”.$halo,$PREAUTH_KEY);
  14.     $preauthURL = $WEB_MAIL_PREAUTH_URL.”?account=”.$email.”&by=name&timestamp=”.$halo.”&expires=0&preauth=”.$preauthToken;
  15.    header(”Location: $preauthURL”);
  16. ?>
  17. Target
  18.         if(isset($_GET[’username’]) && isset($_GET[’account’]) && isset($_GET[’timestamp’]) && isset($_GET[’preauth’])){
  19.                 $username=$_GET[’username’];
  20.                 $account=$_GET[’account’];
  21.                 $tsq=$_GET[’timestamp’];
  22.                 $preauth=$_GET[’preauth’];
  23.         $PREAUTH_KEY=”b1e40a2aa6bebcf3fb1c9c7ba4a97201b1e40a2aa6bebcf3fb1c9c7ba4a97201″;
  24.                 $timestamp=time()*1000;
  25.                 if(($timestamp-$tsq)<300){
  26.                         $preauthToken=hash_hmac(”sha1″,$account.”|name|0|”.$tsq,$PREAUTH_KEY);
  27.                         if( $preauth == $preauthToken)
  28.                                 $IsValidUser=TRUE;
  29.                 }
  30.         }