Connecting to an untrusted certificate in java

I was getting errors(unable to find valid certification path to requested target) in Alfresco trying to connect to LDAP over ssl using an untrusted certificate and found a great hint on the interwebs that I thought I’d share. Most of the hits on google mention this post: http://blogs.sun.com/gc/entry/unable_to_find_valid_certification My only criticism of that article is that it only minimally addresses how to actually use the fixed keystore. I downloaded their source and hacked it up a little change the name of the certificate store from “jssecacerts” into “cacert” which is the default certificate store for all java programs. My goal was to fix the certificate store for the entire machine. ...

February 20, 2011 · 1 min · Dan

Creating custom JMX MBeans for reporting in Alfresco

JMX rocks. When configuring a server it is a boon to developers. Especially when combined with the Alfresco subsystem architecture. You can interate on changes to the LDAP sync without having to restart the server. JMX also gives savvy system administrators a way to manage and monitor what’s going on within the repository. If you’re still unfamiliar with the basics of JMX, especially within the context of Alfresco, Jarred Ottley over at Alfresco has written a number of excellent tutorials. I’ve added some additional articles and come up with the list below. ...

November 8, 2010 · 3 min · Dan

Attaching to a running Alfresco instance - running code in Alfresco

A coworker and I have been scheming for a number of months on ways to run migration scripts and develop workflow in Alfresco. The common thread is that we have a repository that’s running and we want run arbitrary code against it. We have had a number of ideas that have taken us in two different directions. I’d like to talk about a few of them, outline the issues we’ve run into and then outline our merged solution. ...

October 18, 2010 · 7 min · Dan