Properly look up provided products when generating certs

Code was looking up the provided product by the wrong ID,
causing the product and content to be empty in the certificates.