So it's technically feasible. Not quite there in terms of cost and scale but if the alternative is a blockade then probably worth investing in.
Ironically some of the best locations for production are in the middle east.
I think South Africa gets most of its diesel from the Fischer–Tropsch process. You could use electrolytic hydrogen as an input for that. About 40% of the energy in gasoline is from hydrogen burning.
It's not great but it would allow you to run current vehicles off about 40% solar energy.
Anyone got a WAG about how much it would cost.
https://www.topsoe.com/news/worlds-first-dynamic-green-ammon...
Main innovation in this plant is that the process is optimized to run off of intermittent sources like solar or wind.