It is legal but the jurisdiction of the country you will be renting the site is the issue and also you must prove what kind of activity you will conducting because it is risky for the owner if you put bad activity in their license .
Even if it's possible to rent license even if it is illegal to base on some replies here in this thread as it is against the tos but what if the owner of the license let op rented it but later on then the owner will take back (by reporting that it is stolen/illegal acquiring of the license) or voided the agreement they made in renting the license then op will be force to use his/her own lincense (which should have been the first choice) or run his/her own gambling site without license.
No owner in their right mind will make an agreement that is not officially sealed and under the law. Aside from that, both parties on agreement knows their respective identities in personal. But like other saying, it's illegal and I doubt that's really the solution. I don't even think that someone will rent a license as complying with the legit license is just easy.
OP is now inactive and doesn't responded on this thread. We don't know what the status already. Maybe time now to forget this thread as without OP's update, we are just giving our repetitive comments and suggestions.