Add cert only when provided