Difference between revisions of "Sysadmin Notes"

From Krupczak.org
Jump to: navigation, search
(Fun with Dovecot IMAP, Postfix, Squirrel Mail, Apache, etc.)
Line 15: Line 15:
  
 
Look for ''.subscriptions'' and ''.imap'' in your ''Mail'' directory (or ''mail'') and check the ownership and permissions.
 
Look for ''.subscriptions'' and ''.imap'' in your ''Mail'' directory (or ''mail'') and check the ownership and permissions.
 +
 +
== Fun with Java Keystores: How to import a private key and cert into a Java Keystore ==
 +
 +
I use SSL outside of Java for many things including Web servers, LDAP, SSL programming, etc.  Consequently, most of my systems already have private keys and x509 certs.  Java's ''keytool'' program it nearly impossible (as far as I can tell) to import pre-existing keys and certs into an existing or new keystore.
 +
 +
I came across [this http://www.agentbob.info/agentbob/79-AB.html?branch=1&language=1] web page that describes out to do so.  I summarize here just in case this web page goes away.

Revision as of 20:58, 1 July 2008

Notes on system administration gotchas, snafus, etc.

Fun with Dovecot IMAP, Postfix, Squirrel Mail, Apache, etc.

I recently lost a disk and paid to have it recovered. When I re-loaded my home directory, some of my file permissions got mangled.

When I tried to log into my Webmail facility, I received the following error message:

ERROR: Could not complete request.
Query: LSUB "" "*"
Reason Given: Permission denied

Fixing this problem involved finding all the Dovecot files in my home directory and changing the onwership and group back to my user rather than root.

Look for .subscriptions and .imap in your Mail directory (or mail) and check the ownership and permissions.

Fun with Java Keystores: How to import a private key and cert into a Java Keystore

I use SSL outside of Java for many things including Web servers, LDAP, SSL programming, etc. Consequently, most of my systems already have private keys and x509 certs. Java's keytool program it nearly impossible (as far as I can tell) to import pre-existing keys and certs into an existing or new keystore.

I came across [this http://www.agentbob.info/agentbob/79-AB.html?branch=1&language=1] web page that describes out to do so. I summarize here just in case this web page goes away.