Lord Bolton meets with Ramsay after crossing Moat Cailin. Although in the show he declares him legitimized at this point, in the novels Ramsay is already aware of his legitimization.
HBO
Season 4, Roose Bolton, Ramsay Snow, Ramsay Bolton, EP408