Added logic to attach a type select dialog to the certificate export.