esrahofstede / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Invalid certificate problem using Photo browser #427

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Try the Photo browser application under Linux using Mono. You get a prompt 
dialog asking for user id and password - next thing, the provided information 
is either correct or incorrect, you may get a WebException, complaining and 
saying the certificate is not valid for the site: 

System.Net.WebException: Error getting response stream (Write: The 
authentication or decryption has failed.): SendFailure ---> 
System.IO.IOException: The authentication or decryption has failed. ---> 
Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from 
server. Error code: 0xffffffff800b010a
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 () [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 
  at Google.GData.Client.Utilities.QueryClientLoginToken (Google.GData.Client.GDataCredentials gc, System.String serviceName, System.String applicationName, Boolean fUseKeepAlive, System.Uri clientLoginHandler) [0x00000] in <filename unknown>

It seems you forgot to read: 
http://www.mono-project.com/UsingTrustedRootsRespectfully

Original issue reported on code.google.com by calberto...@gmail.com on 13 Sep 2010 at 11:42

GoogleCodeExporter commented 9 years ago
That is a common issue with Mono.
Run the following command to fix it:

sudo mozroots --import --sync

Original comment by ccherub...@google.com on 30 Jan 2011 at 8:43

GoogleCodeExporter commented 9 years ago
Have you got a fix for windows?

I'm trying to use the google API to login to youtube but I keep getting this 
same error:

Invalid certificate received from server. Error code: 0xffffffff800b010a

Original comment by spinalj...@gmail.com on 25 Nov 2011 at 11:40

GoogleCodeExporter commented 9 years ago
Sadly I never got an answer, so the answer would be 'no'

Original comment by calberto...@gmail.com on 25 Nov 2011 at 11:57

GoogleCodeExporter commented 9 years ago
I just tried this and fixed my problem on windows:

searched for my copy of mozroots.exe which was in "C:\Program 
Files\Mono-2.6.3\lib\mono\1.0"

then ran it with these arguments:

mozroots.exe --import --sync

It then downloads some updated files which cured my problems.

You might want to try updating your mono install and see if that helps.

Original comment by spinalj...@gmail.com on 26 Nov 2011 at 12:03