Web

You are currently browsing the articles from Information City matching the category Web.

Could not establish trust relationship for the SSL/TLS secure channel

Was trying to develop a test app. that interfaces to webservice hosted under SSL but prompted error as stated in topic. There wasn’t any issue if the app. connects to function hosted by webservice without SSL. A further checking, the certificate used by the webservice has already expired (since the certificate was generated as test during initial setup) and no longer being updated. Thinking not to touch the web server on the SSL configuration, I thought I should come up with a workaround instead since normal web browser access works just fine even if the certificate is expired or invalid.

One workaround which I can find in Microsoft forum, to overwrites the handler function of when accepting certificate from the server through (ServicePointManager.ServerCertificateValidationCallback). A snippet of the code as below:

Private Function ValidateCertificate(ByVal sender As Object, ByVal certificate As X509Certificate, ByVal chain As X509Chain, ByVal sslPolicyErrors As SslPolicyErrors) As Boolean
‘Return True to force the certificate to be accepted.
Return True
End Function

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf ValidateCertificate)
End Sub

For more in-depth explanation, refer to Microsoft Support.

Keywords:

Written by admin on May 14th, 2012 with no comments.
Read more articles on Programming and Web.

Online storage (or cloud storage?)

Well, you might have heard Google will be releasing their Google Drive. I have just read on the news that they planned to give out 5gb storage size for free and if need more, premium one with 100GB with a fee. If 5GB is already huge to you or you have not even bothered with online storage, then you might want to skip this. But for me, I am using online storage as a backup on my stuff (non-confidential, purely for safekeeping). I have been using Microsoft’s SkyDrive and it’s been serving me well. Upon knowing Google is to launch Google Drive, well that excites me. However, with the cap limit of 5GB on the size (not that I have utilized that size) but it turns me down alittle (since GMail is constantly expanding its’ size limit!).

And with this news in mind, I could not recall if SkyDrive impose a limit (didn’t bother to check previously). Since now there’s an alternative out there for me to choose, I thought why not to compare which would offers me better.

And while browsing through SkyDrive page for the size limit, something caught me. They are currently giving out free upgrade, from 7GB to 25GB, of free usage. Hey, that’s awesome (thinking to myself). If anyone of you who are using SkyDrive as your online storage, you might probably want to opt for it and do an upgrade given it’s free now! I’m not sure how long this “free upgrade” will last, or if it will be a permanent upgrade impose to those existing user, but why wait and take risk if you could act now. I’ve upgraded my SkyDrive size to 25GB and i’ll wait for an official launching of Google Drive to see if they will offer a bigger size online storage :)

P/S: Skydrive existing storage size is 25GB. Apparently they are downgrading their offers instead of offering an upgrade from 7GB to 25GB. I guess they wants to retain their loyal user whom are aware of the size offered initially and not to create “chaotic” for the downgrade.

Keywords:

Written by admin on April 24th, 2012 with no comments.
Read more articles on Software Review and Web.

« Older articles

No newer articles