@vzorglub posted a nicer tutorial on how to add a new trusted CA to Java for mqtt but it should be the same for HTPP