KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.97k stars 347 forks source link

Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed #3037

Closed J0EE0J closed 4 years ago

J0EE0J commented 4 years ago

Background

Have you made any manual changes to your GameData folder (i.e., not via CKAN)? No

Problem

Describe the bug CKAN can't find the repository: default | https://github.com/KSP-CKAN/CKAN-meta/archive/master.tar.gz

Steps to reproduce After installing KSP 1.9.1 to a new sudir , I deleted the old subdirs with 1.5.x to 1.7.x KSP. I kept 1.8.1 in case 1.9.1 would'nt work as expected. I also updated CKAN to the current version, purged the cache and changed its position into the new subidr. Removed the KSP versions 1.5.x to 1.7.x from the CKAN manage KSP instances. I started KSP once and have set all KSP parameters needed. Then I started the new CKAN from the GUI again and it did not show a UI at all and finished after a certain amount of time without any further comment, linux style. But after I tried it in the terminal, it seemed to run with UI. Now it also runs with UI if I start it from the GUI. But I always get the error mentioned below Expected behavior Work as usual - have access to the repository

CKAN error code (if applicable):

 Not found.
Scanning for DLCs and manually installed modules...
Updating repositories...
Failed to download https://github.com/KSP-CKAN/CKAN-meta/archive/master.tar.gz: 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: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (IAsyncResult asyncResult) <0x40613d30 + 0x0010b> in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (IAsyncResult ar, Boolean ignoreEmpty) <0x40613c70 + 0x0002b> in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) <0x4060eea0 + 0x0022b> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) <0x4063b500 + 0x00207> in <filename unknown>:0 
  at System.Net.WebConnectionStream+<SetHeadersAsync>c__AnonStorey1.<>m__0 (IAsyncResult r) <0x4063adb0 + 0x0014f> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at System.Net.WebClient.DownloadFile (System.Uri address, System.String fileName) <0x40646000 + 0x003c3> in <filename unknown>:0 
  at System.Net.WebClient.DownloadFile (System.String address, System.String fileName) <0x40645b20 + 0x0003b> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Net.WebClient:DownloadFile (string,string)
  at CKAN.Net.Download (System.String url, System.String& etag, System.String filename, IUser user) <0x40634f20 + 0x001f3> in <filename unknown>:0 
Repository update failed!

In case you need further information, feeld free to contact me via email.

TIA, Joe Hermann

HebaruSan commented 4 years ago

Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

That means there's a problem with Mono's crypto certificates, see this page for help:

J0EE0J commented 4 years ago

Hi there, did all the cryptic command lines for ubtuntu mentioned on this site. But with the exception of having now nearly 2GB more on my disk,  nothing has changed. Still the same error. Was all working up to KSP 1.8.1 and the CKAN version before. Now it has been disimproved.

Frankly said all these certificates are not worth it. They simply are building more and more walls around the user until he/she is no longer able to have free access. And the governments and companies are anyway able to cross those certificate walls easily to get what they want. They invested billions to be able to. Just my 5 cents. Is there a way to go back to the old functional scenario ? 

Thanks for your support, Jochen "Joe" Herrmann


Wilhelmstr.26 D - 50321 Brühl Tel.  +49 2232 2050 250 Fax +49 2232 2050 625

1, Dosberstrooss - 9763 Marnach Tel. +352 2690 4994

Mob. +352 621 402 755    Email joe855611@yahoo.com

On Saturday, April 18, 2020, 9:50:50 PM GMT+2, HebaruSan <notifications@github.com> wrote:  

Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

That means there's a problem with Mono's crypto certificates, see this page for help:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

klimburg commented 4 years ago

I had this same problem and couldn't figure it out for the life of me for quite some time. In the end I had an old mono 3.10 binary at /usr/local/bin/mono which was ahead of /usr/bin/mono (the 6.8.0 verision) on my path.

You should do a mono --version and make sure its the version you expect

netkan-bot commented 4 years ago

Hey there! I'm a fun-loving automated bot who's responsible for making sure old support tickets get closed out. As we haven't seen any activity on this ticket for a while, we're hoping the problem has been resolved and I'm closing out the ticket automatically. If I'm doing this in error, please add a comment to this ticket to let us know, and we'll re-open it!