Create and dispatch certificates using template