The problem could be related to the validity of the certificate that you are using it.
By default .Net refuses to establish https connection with invalid or not trusted certificate.
Usually the certificate is invalid because it is generate by a non-trusted authority (self signed certificate) or because the address of the site is not included in the valid addresses list for the certificate.
In .Net this limitation can be relaxed, see this discussion
C# Ignore certificate errors?