It is a speech that Kennedy gave on April 27, 1961 to the American Newspaper Publishers Association. He was killed about two and a half years later on November 22, 1963. It has been said that it was, in part, because of this speech.
Listen to it. Or, if you prefer, I have included the text of the speech below the video.