Fix certificate templates