Sorry should have checked this first
I see the error now:
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. —> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
The self-signed certificate is issued to my local computer and is invalid.