Tuesday, September 9, 2014

Mono Trusted Root Certificates missing

Tuesday, September 09, 2014 Posted by Andre Broers 13 comments
When you receive the following exception in mono it means mono wants to make a secure SSL connection but the certificate it gets is not trusted. Most of the time this means the root certificates are not installed in the mono environment.

System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a

Use the following command to import the current root certificates. (I find it useful to do this only for the current user so that is what the command imports)

 $ mozroots --import --ask-remove

13 comments:

  1. You have made an awesome attempt and is doing consistanty good.
    Error Code 183-4

    ReplyDelete
  2. Thank you very much for this!

    ReplyDelete
  3. Wow, this is an awesome tool! will definitely be re-using this tool and spreading the word about it, thanks!!
    Informatica Training
    Online informatica Training
    Learn Hadoop Online

    ReplyDelete
  4. Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
    Java Training in Chennai

    ReplyDelete