In the past, we had to implement client certificate authentication for several corporate clients when we wanted to query REST APIs. It would be much more efficient and less complex not to use Groovy jobs for this, but to be able to add this certificate directly in the REST connection.
It's even a default function in postman (https://learning.postman.com/docs/sending-requests/certificates/)