I'm not libertarian but the obvious solution is consumer advocacy & reporting groups and such, who certify products as "legit". They do the hard work of figuring out which products are good. But unlike the FDA, they have a market incentive to do this effectively.
I don't propose this belief, but it's the libertarian solution to the problem you pose.