Expiry can either be set at the template level or at the issued certificates level. Go to Memberships > Certificates > tick the 3 dot icon > select Set Expiry.
At the template level expiry can be selected from the given options.
At issued certificates level admin can choose from Never, Immediately or can manually select a date.