Gasoline works with in-ground wasp nests by asphyxiation. It displaces the air in the hole.
It is also a decent ground sterilant, so it will kill any plants around the hole. Just something to keep in mind.
But the OP asked about wasps in a porch roof. Pouring gasoline on a structure is never a good idea. Neither is spraying gasoline. Putting gasoline in a Sureshot is something between a flame thrower and a bomb. Bad idea!
The comments about using kerosene are another not so good either (but closer to the mark). Believe it or not, the 97% "inert" ingredients in the aerosol wasp sprays is nothing but kerosene. That is also the ingredient that knocks the wasps out of the air. But it is not guaranteed to kill them, and is not guaranteed to kill the entire nest if you just spray a part of it.
It is that other 0.6% of pyrethrin/pyrethroid/neurotoxin that actually guarantees that the nest is killed.
The problem with these pyrethroid chemicals is that once released from the can and exposed to air, they have 24-48 hours of good activity before they're too degraded to be of much help. Get a good spray on the nest, and it may be done for, but there's nothing left behind to stop another nest from occupying the same space.
When it comes to nests in a soffit, I don't wan to be going up a ladder to hit the same space the next year, so I finish the job with dust. Sevin has a residual effect for several years if used in a dry space (the space behind the gutter should be protected from the elements well enough to use a dust), and the "inert" part of Sevin dust is diatomaceous earth, which is a fairly good insect dust in its own right (and will last for centuries).