Use the right intermediate certificates