fixed #19; moved certificate settings to static props