rigsb.net

News for our friends and family.

Category Archives: Geek

SVN Removal Reg Hack

Posted on by Eric Rigsby

REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @=”Delete SVN Folders” [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @=”cmd.exe /C \”TITLE Removing SVN Folders in %1 && FOR /r \”%1\” %%f IN (.svn) DO RD /s /q \”%%f\” \”"

Tomcat PKI Authentication

Posted on by Eric Rigsby

Objective Enable PKI authentication for applications hosted in Tomcat 5.5.x. Notes Create keystore containing server private key, server public certificate, and CA public certificate(s). Create PKCS12 format server private key keystore. openssl pkcs12 -export -in server.pem -inkey server.key -out server-key.p12 … Continue reading

Hash Tomcat Users’ Passwords

Posted on by Eric Rigsby

java -cp “D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\commons-logging-1.1.1.jar”;”d:\Program Files\Apache Software Foundation\Tomcat 5.5\server\lib\catalina.jar” org.apache.catalina.realm.RealmBase -a MD5 <NEW_PASSWORD>

OAS Log Rotation and Java Options

Posted on by Eric Rigsby

Objective Configure an OAS instance for centralized logging, daily log rotation, and increased memory. Notes Edit opmn.xml. For each instance make the following changes. <data id=”java-options” value=”-server -Xmx1024M -Xms1024M -Djava.security.policy=$ORACLE_HOME/j2ee/liferay/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Djava.io.tmpdir=<PATH_TO_TMP> -Duser.home=<PATH_TO_TMP> -XX:MaxPermSize=512M -Doc4j.userThreads=true -Dfile.encoding=UTF-8 -Doracle.useSessionIDFromCookie=true -Dstdstream.rotatetime=00:00″/> <data … Continue reading