A distrubited credential management system