Hi, Bart.
I suppose you're talking about Gluu's [certificate custom authentication script](https://gluu.org/docs/ce/3.1.3/authn-guide/cert-auth/)? If it's the case, you can try to modify the script using ideas you may find in [reset to step N](https://github.com/GluuFederation/oxAuth/tree/master/Server/integrations/basic.reset_to_step) and [acr router](https://github.com/GluuFederation/oxAuth/tree/master/Server/integrations/acr_router) scripts.
In any case, you'll have to do some coding, and we won't be able to assist you with it, as coding tasks are not covered by community (free) support.