rigsb.net

News for our friends and family

Tag Archives: log

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

OAS HTTPS Lockdown

Posted on by Eric Rigsby

Objective Configure Oracle Application Server 10.1.3.4 to restrict access to HTTPS (port 443). Notes Pre-reqs: OAS 10.1.3.4 with only J2EE and OHS installed. Signed certificate and private key for this server. Certificate must be included in a pkcs12 file at … Continue reading