A pair of friends with Charleston roots rose to the highest ranks of the armed forces