John Kennedy actually said...
Our goal is not the victory of might, but the vindication of right--not peace at the expense of freedom, but both peace and freedom, here in this hemisphere, and, we hope, around the world.
Context
Radio and Television Report to the American People on the Soviet Arms Buildup in Cuba
10/21/1962