1. A computer-readable storage medium in a Set-Top Box (STB), comprising computer instructions for: receiving an identifier from a Residential Gateway (RG); submitting the identifier of the RG and a certificate of the STB to an IPTV system; and receiving from the IPTV system provisioning information for enabling presentation of IPTV services at a media device upon authenticating the STB according to the identifier of the RG and the certificate of the STB.