You should put the following at any point before you show the web browser control / submit the page:
ServicePointManager.ServerCertificateValidationCallback +=
new RemoteCertificateValidationCallback((sender, certificate, chain, policyErrors) => { return true; });
(This is exactly the same as the example answer in the linked question, but the callback method is anonymous so its a little more compact).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…