So turns out I am really new to web programming. The standard TLS port is 443. Also, coinbase's TLS api requires you to only set the hostname in the SNI field and not the hostname:port
Otherwise, the example worked as is!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…